/* ==========================================================================
   NaviNaut Auth/Payment Pages — Custom Styles
   Adapted from www.navinaut.de/css/style.css
   ========================================================================== */

/* --- Variables --- */
:root {
    --nn-blue: #007cdb;
    --nn-blue-dark: #0964a5;
    --nn-blue-light: #2EA3F2;
    --nn-orange: #f18900;
    --nn-teal: #29c4a9;
    --nn-text: #333;
    --nn-text-light: #666;
    --nn-text-muted: #999;
    --nn-bg-light: #f5f5f5;
    --nn-bg-gray: #f3f3f3;
    --nn-border: #e0e0e0;
}

/* --- Global --- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    color: var(--nn-text);
    font-size: 15px;
    line-height: 1.7;
    padding-top: 70px;
}

a {
    color: var(--nn-blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--nn-blue-dark);
}

/* --- Navbar (from www.navinaut.de) --- */
.navbar-nn {
    background: rgba(30, 40, 60, 0.95);
    padding: 12px 0;
    transition: background 0.3s, padding 0.3s;
}
.navbar-nn.scrolled {
    background: rgba(20, 30, 50, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-nn .navbar-brand img {
    height: 40px;
}

.navbar-nn .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px !important;
    transition: color 0.2s;
}
.navbar-nn .nav-link:hover,
.navbar-nn .nav-link.active {
    color: #fff !important;
}

.navbar-nn .nav-cta .nav-link {
    color: var(--nn-orange) !important;
    font-weight: 700;
}
.navbar-nn .nav-cta .nav-link:hover {
    color: #fff !important;
}

/* --- Footer (from www.navinaut.de) --- */
.footer-nn {
    background: #2a2e35;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    font-size: 14px;
}
.footer-nn h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-nn a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-nn a:hover {
    color: #fff;
}
.footer-nn ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nn ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    background: #22252b;
    padding: 18px 0;
    margin-top: 40px;
    text-align: center;
}
.footer-bottom .social-icons a {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    margin: 0 10px;
    transition: color 0.2s;
}
.footer-bottom .social-icons a:hover {
    color: #fff;
}
.footer-bottom .copyright {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 10px;
}

/* --- Buttons --- */
.btn-nn {
    background: var(--nn-blue);
    color: #fff;
    border: 2px solid var(--nn-blue);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn:hover {
    background: var(--nn-blue-dark);
    border-color: var(--nn-blue-dark);
    color: #fff;
}
.btn-nn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-nn-orange {
    background: var(--nn-orange);
    color: #fff;
    border: 2px solid var(--nn-orange);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn-orange:hover {
    background: #d97a00;
    border-color: #d97a00;
    color: #fff;
}
.btn-nn-orange:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-nn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* --- Form overrides --- */
.form-control:focus {
    border-color: var(--nn-blue);
    box-shadow: 0 0 0 3px rgba(0, 124, 219, 0.15);
}

/* --- Auth Pages (login, register, password reset) --- */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--nn-bg-light);
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 460px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo h1 {
    color: var(--nn-text);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-logo h1 i {
    color: var(--nn-blue);
    font-size: 32px;
}
.auth-logo p {
    color: var(--nn-text-light);
    font-size: 14px;
    margin-bottom: 0;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
}
.auth-link a {
    color: var(--nn-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.auth-link a:hover {
    color: var(--nn-blue-dark);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0 12px;
}
.auth-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--nn-border);
}
.auth-divider span {
    margin: 0 12px;
    color: var(--nn-text-muted);
    font-size: 13px;
    font-weight: 600;
}

/* --- Info Box (replaces .demo-info) --- */
.info-box {
    background: rgba(0, 124, 219, 0.06);
    border-left: 4px solid var(--nn-blue);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
}

/* --- Alerts --- */
.alert-nn-error {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}
.alert-nn-error a {
    color: var(--nn-blue);
    font-weight: 600;
}

.alert-nn-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    background: #efe;
    color: #060;
    border-left: 4px solid #060;
}

/* --- Auth form elements --- */
.auth-card .form-group {
    margin-bottom: 20px;
}
.auth-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--nn-text);
    font-weight: 500;
    font-size: 14px;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--nn-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
    outline: none;
    border-color: var(--nn-blue);
    box-shadow: 0 0 0 3px rgba(0, 124, 219, 0.15);
}

.auth-card .password-hint {
    font-size: 12px;
    color: var(--nn-text-muted);
    margin-top: 4px;
}

.auth-card .info-text {
    color: var(--nn-text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Auth button full-width */
.auth-card .btn-nn,
.auth-card .btn-nn-orange {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
}
.auth-card .btn-nn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 219, 0.3);
}
.auth-card .btn-nn:active {
    transform: translateY(0);
}
.auth-card .btn-nn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 137, 0, 0.3);
}
.auth-card .btn-nn-orange:active {
    transform: translateY(0);
}

/* --- Payment / Profile --- */
.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.product-card {
    border: 2px solid var(--nn-blue);
    border-radius: 12px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nn-text);
}
.price-tag .currency {
    font-size: 1.2rem;
    vertical-align: super;
}
.price-tag .period {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.feature-icon {
    color: var(--nn-blue);
    font-size: 1.2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nn-text);
}
.section-title i {
    color: var(--nn-blue);
}

.danger-card {
    border: 1px solid #dc3545;
    background: #fff5f5;
}
.danger-card .card-header {
    background: #dc3545;
    color: white;
    font-weight: 600;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.payment-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

/* --- Admin --- */
.table-self {
    background-color: rgba(0, 124, 219, 0.06) !important;
}

.admin-badge {
    background: var(--nn-blue-dark) !important;
}

/* Mobile: cards instead of table */
@media (max-width: 991.98px) {
    .user-card-mobile { display: block !important; }
    .user-table-desktop { display: none !important; }
}
@media (min-width: 992px) {
    .user-card-mobile { display: none !important; }
    .user-table-desktop { display: block !important; }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }
    .auth-logo h1 {
        font-size: 24px;
    }
}
