/**
 * Rivo - Login Page CSS
 * Styles specific to the login/signup page
 */

/* Override body for login page - centered gradient background */
body.login-page {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 20px; /* Override safe-area padding */
}

/* Login Container */
.login-container {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.login-logo h1 {
    margin: 0;
    font-size: 32px;
    color: var(--text-primary);
}

.login-logo p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    font-style: italic;
}

/* Login Tabs (different style from dashboard tabs) */
.login-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.login-tab.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Form Sections */
.login-form-section {
    display: none;
}

.login-form-section.active {
    display: block;
}

/* Messages */
.login-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: var(--font-size-base);
    display: none;
}

.login-message.show {
    display: block;
}

.login-message.error {
    background: var(--danger-bg);
    color: var(--danger-dark);
}

.login-message.success {
    background: var(--success-bg);
    color: var(--success-dark);
}

/* Demo Note */
.login-demo-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.login-demo-note strong {
    color: var(--text-primary);
}

/* Password Reset Section */
.password-reset-header {
    text-align: center;
    margin-bottom: 20px;
}

.password-reset-header .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.password-reset-header h2 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.password-reset-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Version Display */
.login-version {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: #999;
    font-weight: 500;
}
/* ========================================
   Login Page - Additional Styles for Request Access
   Add these to your existing login.css
   ======================================== */

/* Form row for side-by-side fields */
.login-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .login-container .form-row {
        grid-template-columns: 1fr;
    }
}

/* Request intro text */
.request-intro {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light, #f8fafc);
    border-radius: 8px;
}

.request-intro p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
}

/* Textarea styling */
.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Select dropdown styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

/* Request success state */
.request-success-content {
    text-align: center;
    padding: 32px 16px;
}

.request-success-content .success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color, #27ae60);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.request-success-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 8px;
}

.request-success-content p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 24px;
}

/* Demo note styling update */
.login-demo-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary, #64748b);
}

.login-demo-note a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.login-demo-note a:hover {
    text-decoration: underline;
}

/* Secondary button */
.btn--secondary {
    background: transparent;
    color: var(--primary-color, #667eea);
    border: 2px solid var(--primary-color, #667eea);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn--secondary:hover {
    background: var(--primary-color, #667eea);
    color: white;
}
/* ========================================
   Login Page - Additional Styles for Request Access
   Add these to your existing login.css
   ======================================== */

/* Form row for side-by-side fields */
.login-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .login-container .form-row {
        grid-template-columns: 1fr;
    }
}

/* Request intro text */
.request-intro {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light, #f8fafc);
    border-radius: 8px;
}

.request-intro p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
}

/* Textarea styling */
.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Select dropdown styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

/* Request success state */
.request-success-content {
    text-align: center;
    padding: 32px 16px;
}

.request-success-content .success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color, #27ae60);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.request-success-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 8px;
}

.request-success-content p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 24px;
}

/* Demo note styling update */
.login-demo-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary, #64748b);
}

.login-demo-note a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.login-demo-note a:hover {
    text-decoration: underline;
}

/* Secondary button */
.btn--secondary {
    background: transparent;
    color: var(--primary-color, #667eea);
    border: 2px solid var(--primary-color, #667eea);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn--secondary:hover {
    background: var(--primary-color, #667eea);
    color: white;
}
/* ========================================
   Login Page - Additional Styles for Request Access
   Add these to your existing login.css
   ======================================== */

/* Form row for side-by-side fields */
.login-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .login-container .form-row {
        grid-template-columns: 1fr;
    }
}

/* Request intro text */
.request-intro {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light, #f8fafc);
    border-radius: 8px;
}

.request-intro p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
}

/* Textarea styling */
.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Select dropdown styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

/* Request success state */
.request-success-content {
    text-align: center;
    padding: 32px 16px;
}

.request-success-content .success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color, #27ae60);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.request-success-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 8px;
}

.request-success-content p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 24px;
}

/* Demo note styling update */
.login-demo-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary, #64748b);
}

.login-demo-note a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.login-demo-note a:hover {
    text-decoration: underline;
}

/* Secondary button */
.btn--secondary {
    background: transparent;
    color: var(--primary-color, #667eea);
    border: 2px solid var(--primary-color, #667eea);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn--secondary:hover {
    background: var(--primary-color, #667eea);
    color: white;
}

/* Forgot password link */
.forgot-password-link {
    text-align: right;
    margin-top: 6px;
}

.forgot-password-link a {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
}

.forgot-password-link a:hover {
    color: var(--primary-color, #667eea);
    text-decoration: underline;
}

/* Password hint text */
.password-hint {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin-top: 6px;
}

/* Real-time password requirements */
.password-requirements {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-req {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pw-req.valid {
    color: #16a34a;
}

.pw-req.invalid {
    color: #dc2626;
}

.pw-req-icon {
    font-size: 12px;
    width: 14px;
    text-align: center;
}
