/* ============================================
   AUTHENTICATION STYLES - auth.css
   For: login.php, register.php, registration-success.php
   ============================================ */

/* Auth Container */
.auth-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gt-surface) 0%, var(--gt-surface-2) 100%);
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gt-text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gt-muted);
    font-size: 1rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Groups */
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gt-text);
}

.auth-input-group input {
    padding: 14px 16px;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    background: var(--gt-surface-2);
    color: var(--gt-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--gt-accent);
    box-shadow: 0 0 0 3px rgba(53, 211, 154, 0.1);
}

.auth-input-group input::placeholder {
    color: var(--gt-muted);
}

/* Access Code Section */
.auth-access-code {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-support-text {
    font-size: 0.8rem;
    color: var(--gt-muted);
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Alerts */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.auth-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    text-align: center;
    font-weight: 500;
}

/* Buttons */
.auth-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn-primary {
    background: var(--gt-accent);
    color: #000;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 211, 154, 0.3);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gt-border);
}

.auth-footer p {
    color: var(--gt-muted);
    font-size: 0.95rem;
    margin: 0;
}

.auth-footer a {
    color: var(--gt-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Terms Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gt-accent);
    cursor: pointer;
}

.auth-checkbox-group label {
    font-size: 0.9rem;
    color: var(--gt-muted);
    line-height: 1.5;
    cursor: pointer;
}

.auth-checkbox-group label a {
    color: var(--gt-accent);
    text-decoration: none;
}

.auth-checkbox-group label a:hover {
    text-decoration: underline;
}

/* Success Page */
.auth-success {
    text-align: center;
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(53, 211, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--gt-accent);
}

.auth-success h1 {
    margin-bottom: 10px;
}

.auth-success p {
    color: var(--gt-muted);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-input-group input {
        padding: 12px 14px;
    }
}
.auth-card-header {
    text-align: center;
}

.auth-card-header h1,
.auth-card-header p {
    text-align: center;
    font-weight: 800;
}
/* ============================================
   ADMIN LOGIN - Matches User Sign In Styling
   ============================================ */

.admin-auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gt-surface) 0%, var(--gt-surface-2) 100%);
}

.admin-auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-auth-kicker {
    display: block;
    color: var(--gt-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.admin-auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gt-text);
    margin: 0 0 8px;
}

.admin-auth-subtitle {
    color: var(--gt-muted);
    font-size: 1rem;
    margin: 0 0 30px;
}

.admin-auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    margin-bottom: 20px;
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.admin-auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gt-text);
    margin-bottom: 6px;
}

.admin-auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    background: var(--gt-surface-2);
    color: var(--gt-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-auth-input:focus {
    outline: none;
    border-color: var(--gt-accent);
    box-shadow: 0 0 0 3px rgba(53, 211, 154, 0.1);
}

.admin-auth-input::placeholder {
    color: var(--gt-muted);
}

.admin-auth-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    background: var(--gt-accent);
    color: #000;
    margin-top: 10px;
}

.admin-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 211, 154, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
    .admin-auth-page {
        padding: 20px 15px;
    }
    
    .admin-auth-card {
        padding: 30px 20px;
    }
    
    .admin-auth-card h1 {
        font-size: 1.6rem;
    }
    
    .admin-auth-input {
        padding: 12px 14px;
    }
}



/* ---------------------------------------------------------
   FORGOT PASSWORD PAGE
   --------------------------------------------------------- */

.auth-forgot-password-page {
    width: 100%;
}

/* Recovery method buttons */
.auth-forgot-password-page .auth-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-forgot-password-page .auth-method-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-forgot-password-page .auth-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.auth-forgot-password-page .auth-method-btn:active {
    transform: translateY(0);
}

/* Recovery information text */
.auth-forgot-password-page .auth-support-text {
    line-height: 1.6;
}

/* Error / information messages */
.auth-forgot-password-page .auth-alert {
    border-radius: 12px;
    line-height: 1.5;
}

/* Input */
.auth-forgot-password-page .auth-input-group input {
    width: 100%;
    min-height: 52px;
}

/* Footer links */
.auth-forgot-password-page .auth-footer {
    margin-top: 24px;
}

.auth-forgot-password-page .auth-footer a {
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-password-page .auth-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   FORGOT PASSWORD - MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {
    .auth-forgot-password-page .auth-card {
        width: 100%;
    }

    .auth-forgot-password-page .auth-method-btn {
        min-height: 50px;
    }
}



/* ---------------------------------------------------------
   VERIFY RESET CODE PAGE
   Page-specific styling for verify-reset-code.php
   Uses the existing VastiqTrade auth design system.
   --------------------------------------------------------- */

.auth-card:has(#code) {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    border: 1px solid var(--gt-border, rgba(128, 128, 128, .18));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#code):hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .27);
}

/* Page heading */
.auth-card:has(#code) .auth-card-header h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-card:has(#code) .auth-card-header p {
    color: var(--gt-muted);
    line-height: 1.6;
}

/* Verification form */
.auth-card:has(#code) .auth-form {
    width: 100%;
}

.auth-card:has(#code) .auth-input-group {
    margin-bottom: 18px;
}

.auth-card:has(#code) .auth-input-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--gt-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Six-digit code input */
.auth-card:has(#code) #code {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    background: var(--gt-surface-2);
    color: var(--gt-text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#code) #code:focus {
    border-color: var(--gt-accent);
    box-shadow: 0 0 0 4px rgba(53, 211, 154, 0.10);
}

.auth-card:has(#code) #code::placeholder {
    color: var(--gt-muted);
    letter-spacing: normal;
    font-weight: 400;
}

/* Supporting information */
.auth-card:has(#code) .auth-support-text {
    margin: 8px 0 22px;
    color: var(--gt-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Error message */
.auth-card:has(#code) .auth-alert-danger {
    border-radius: 12px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Verify button */
.auth-card:has(#code) .auth-btn-primary {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#code) .auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(53, 211, 154, .16);
}

.auth-card:has(#code) .auth-btn-primary:active {
    transform: translateY(0);
}

/* Footer link */
.auth-card:has(#code) .auth-footer {
    margin-top: 24px;
}

.auth-card:has(#code) .auth-footer a {
    color: var(--gt-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-card:has(#code) .auth-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   VERIFY RESET CODE - PHONE
   --------------------------------------------------------- */

@media (max-width: 767px) {
    .auth-card:has(#code) {
        border-radius: 16px;
    }

    .auth-card:has(#code) #code {
        min-height: 54px;
        font-size: 1rem;
    }
}




/* ---------------------------------------------------------
   RESET PASSWORD PAGE
   Page-specific styling for reset-password.php
   --------------------------------------------------------- */

.auth-card:has(#password) {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gt-border, rgba(128, 128, 128, .18));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#password):hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .27);
}

/* Page heading */
.auth-card:has(#password) .auth-card-header h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-card:has(#password) .auth-card-header p {
    color: var(--gt-muted);
    line-height: 1.6;
}

/* Form */
.auth-card:has(#password) .auth-form {
    width: 100%;
}

.auth-card:has(#password) .auth-input-group {
    margin-bottom: 20px;
}

.auth-card:has(#password) .auth-input-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--gt-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Password inputs */
.auth-card:has(#password) #password,
.auth-card:has(#password) #confirm_password {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    background: var(--gt-surface-2);
    color: var(--gt-text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#password) #password:focus,
.auth-card:has(#password) #confirm_password:focus {
    border-color: var(--gt-accent);
    box-shadow: 0 0 0 4px rgba(53, 211, 154, 0.10);
}

.auth-card:has(#password) input::placeholder {
    color: var(--gt-muted);
}

/* Password requirement text */
.auth-card:has(#password) .auth-support-text {
    margin: 4px 0 22px;
    color: var(--gt-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Error message */
.auth-card:has(#password) .auth-alert-danger {
    border-radius: 12px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Success message */
.auth-card:has(#password) .auth-alert-info {
    border-radius: 12px;
    margin-bottom: 22px;
    line-height: 1.6;
}

/* Reset button */
.auth-card:has(#password) .auth-btn-primary {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:has(#password) .auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(53, 211, 154, .16);
}

.auth-card:has(#password) .auth-btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.auth-card:has(#password) .auth-footer {
    margin-top: 24px;
}

.auth-card:has(#password) .auth-footer a {
    color: var(--gt-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-card:has(#password) .auth-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   RESET PASSWORD - PHONE
   --------------------------------------------------------- */

@media (max-width: 767px) {
    .auth-card:has(#password) {
        border-radius: 16px;
    }

    .auth-card:has(#password) #password,
    .auth-card:has(#password) #confirm_password {
        min-height: 54px;
    }
}




