/* Authentication Pages Styling */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2em;
    color: #2d3748;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #718096;
    font-size: 0.95em;
    margin: 0;
}

/* Alert Styling */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fff5f5;
    color: #742a2a;
    border-left-color: #f56565;
}

.alert-icon {
    font-weight: 700;
    flex-shrink: 0;
}

.alert-message {
    font-size: 0.95em;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #f9f9ff;
}

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

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: #718096;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: #f7fafc;
    color: #667eea;
}

.password-toggle:active {
    transform: scale(0.95);
}

/* Button Styling */
.btn-login {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

/* Footer */
.auth-footer {
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.auth-footer p {
    color: #718096;
    font-size: 0.95em;
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left-color: #48bb78;
}

/* Email Verification Status */
.verify-status {
    text-align: center;
    padding: 20px 0;
}

.status-icon {
    font-size: 4em;
    line-height: 1;
    margin-bottom: 20px;
    animation: statusAppear 0.5s ease-out;
}

@keyframes statusAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.verify-status-success .status-icon {
    color: #48bb78;
}

.verify-status-error .status-icon {
    color: #f56565;
}

.verify-status h2 {
    color: #2d3748;
    margin: 20px 0 15px 0;
    font-size: 1.5em;
}

.verify-status p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.button-group .btn {
    margin: 0;
}

/* Loading Spinner */
.status-loading {
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-loading p {
    color: #667eea;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .status-icon {
        font-size: 3em;
    }

    .verify-status h2 {
        font-size: 1.2em;
    }
}


/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 1.5em;
    }

    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
