/* Auth Page Container */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5F7 0%, #F0F9FA 50%, #FFFFFF 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease;
}

/* Auth Card */
.auth-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.15);
}

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

.logo-text {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A3D5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input {
    padding: 14px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A3D5 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

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

.btn-full {
    width: 100%;
}

/* Links */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.link-text {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.link-text:hover {
    color: #44A3D5;
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.link-primary {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Text Utilities */
.text-muted {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
}

/* Verification Page Specific */
.verification-card {
    text-align: center;
}

.verification-content {
    padding: 20px 0;
}

.verification-loading,
.verification-message,
.verification-success,
.verification-error {
    padding: 30px 0;
}

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

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-icon {
    background: #D4EDDA;
    color: #28A745;
}

.error-icon {
    background: #F8D7DA;
    color: #DC3545;
}

.verification-success h3,
.verification-error h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

.verification-success p,
.verification-error p {
    color: #666;
    margin-bottom: 24px;
}

.success-message {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.success-message p {
    margin: 8px 0;
}

/* Error Message (from ui-utilities.js) */
.error-message {
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
    color: #C53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 16px;
    }
}

/* Input with icon wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.form-input.with-icon {
    padding-left: 44px;
}

.form-input.with-toggle {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.2s;
    z-index: 1;
}

.password-toggle:hover {
    opacity: 0.8;
}

.password-toggle img {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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