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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.content {
    text-align: center;
    flex: 1;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.info-message {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0064ff;
    color: white;
}

.btn-primary:hover {
    background-color: #0052cc;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

footer {
    text-align: center;
    padding: 1.5rem 0 0 0;
    color: #6b7280;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

footer a {
    color: #0064ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    width: 100%;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* Register Page Styles */
.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 100, 255, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #0064ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Specific error message style for form groups to avoid conflicts */
.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Success message specific to auth forms */
.auth-container .success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.submit-btn {
    width: 100%;
    background: #0064ff;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 100, 255, 0.3);
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #0064ff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: #e1e5e9;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #dc3545; width: 33%; }
.strength-medium { background: #ffc107; width: 66%; }
.strength-strong { background: #28a745; width: 100%; }

/* Login Page Styles */
.remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #0064ff;
}

.remember-group label {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.forgot-password-wrapper {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password-wrapper a {
    color: #0064ff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Forgot Password & Verify Email Instructions */
.auth-instruction {
    background: #f8f9fa;
    border-left: 4px solid #0064ff;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.auth-instruction p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.auth-instruction p:last-child {
    margin-bottom: 0;
}

/* Verify Email Specific */
.verification-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #bee5eb;
}

.resend-btn {
    width: 100%;
    background: #0064ff;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.resend-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 100, 255, 0.3);
}

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

/* Reset Password Specific */
.password-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}
