/* Import shared variables and styles from main stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors from design guidelines */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8f9;
    --bg-tertiary: #e8eaed;
    --text-primary: #2c2c2c;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --accent-primary: #DA7422;
    --accent-hover: #c4651e;
    --accent-light: #fef7f0;
    --shadow-color: rgba(60, 64, 67, 0.04);
    --shadow-hover: rgba(60, 64, 67, 0.08);
    
    /* Additional colors for auth forms */
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Auth Card */
.auth-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 80px var(--shadow-color);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.logo-image {
    margin-bottom: 1rem;
    border-radius: 8px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    background: var(--bg-secondary);
    border: none;
    border-radius: 24px;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group input:invalid {
    box-shadow: none;
}

/* Error Styles */
.field-error, .form-error {
    color: var(--error-color);
    font-size: 0.85rem;
    font-weight: 400;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--error-color);
    display: none;
}

.form-error.show {
    display: flex;
}

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--accent-light);
    border-radius: 12px;
    font-size: 0.8rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.requirement.met {
    color: var(--success-color);
}

.req-icon {
    font-size: 0.7rem;
    font-weight: bold;
    width: 12px;
    text-align: center;
}

.requirement.met .req-icon {
    color: var(--success-color);
}

.requirement.met .req-icon::before {
    content: '✓';
}

/* Button Styles */
.auth-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-tertiary);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-hover);
}

/* Background Animation */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), rgba(218, 116, 34, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .bg-shape {
        opacity: 0.5;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header {
        margin-bottom: 2rem;
    }
    
    .form-group input {
        padding: 0.875rem 1.25rem;
    }
}

/* Success States */
.field-success {
    color: var(--success-color);
    font-size: 0.85rem;
}

.form-group input.valid {
    border: 2px solid var(--success-color);
}

.form-group input.invalid {
    border: 2px solid var(--error-color);
}

/* Loading States */
.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn.loading .btn-spinner {
    display: block;
}

/* Focus States for Accessibility */
.auth-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.form-group input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.auth-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Simplified Pending Approval Page */
.simple-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 2rem auto;
    text-align: center;
    color: var(--text-secondary);
    max-width: 400px;
}

.primary-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.secondary-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.secondary-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-tertiary);
    margin-top: 2rem;
}

.auth-footer p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Single action button styling */
.auth-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Auth content styles */
.auth-content {
    text-align: center;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
