/* File: public/css/register.css */
/* All CSS for register page in one file */

:root {
    --primary: #4CAF50;
    --primary-dark: #3e8e41;
    --primary-light: #E8F5E9;
    --secondary: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --error: #f44336;
    --success: #4CAF50;
    --warning: #ff9800;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.auth-card {
    background: var(--light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-logo-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.auth-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.auth-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    font-family: 'Instrument Sans', sans-serif;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--light);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.auth-form-input.error {
    border-color: var(--error);
    background-color: #FFF5F5;
}

.auth-form-input.success {
    border-color: var(--success);
    background-color: #F0FFF4;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.password-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-me label {
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.auth-error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.auth-error-message i {
    font-size: 0.875rem;
}

.auth-success-message {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
    background-color: #F0FFF4;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #C6F6D5;
    margin-bottom: 1.5rem;
}

.auth-success-message i {
    font-size: 0.875rem;
}

.auth-btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.auth-btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.auth-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.auth-btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.auth-btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.auth-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.auth-prompt a:hover {
    text-decoration: underline;
}

.auth-footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 1.5rem;
    margin-top: auto;
}

.auth-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-footer-copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.strength-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    background-color: #f44336;
    width: 25%;
}

.strength-fill.fair {
    background-color: #ff9800;
    width: 50%;
}

.strength-fill.good {
    background-color: #8BC34A;
    width: 75%;
}

.strength-fill.strong {
    background-color: #4CAF50;
    width: 100%;
}

.strength-text {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .auth-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-logo-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .auth-logo-text {
        font-size: 1.6rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-form-input {
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px 20px;
    }
}

/* Loading state for registration button */
.btn-primary.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading .btn-text {
    visibility: hidden;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}