/* ABT User Authentication Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --background-color: #f8f9ff;
    --text-color: #2d3748;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #e8f2ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-color);
}

/* Container Styles */
.container {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.container.large {
    max-width: 500px;
}

.container.extra-large {
    max-width: 600px;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.container.success::before {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
}

.container.error::before {
    background: linear-gradient(135deg, var(--error-color) 0%, #e53e3e 100%);
}

/* Logo Styles */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-header p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 0.5rem 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn.secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn.inline {
    width: auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
}

/* Message Styles */
.message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.success {
    background: #f0fff4;
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.message.error {
    background: #fef5f5;
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.message.warning {
    background: #fffbf0;
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.message.info {
    background: #f0f8ff;
    color: var(--info-color);
    border-left-color: var(--info-color);
}

/* Link Styles */
.back-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--secondary-color);
}

/* Help Text */
.help-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
}

.help-text i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Password Requirements */
.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.password-requirements h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 0.25rem 0;
    color: #6b7280;
}

.requirement i {
    margin-right: 0.5rem;
    width: 1rem;
}

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

.requirement.invalid {
    color: #9ca3af;
}

/* Success/Error Pages */
.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: icon-appear 0.8s ease-in-out;
}

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

.error-icon {
    color: var(--error-color);
}

@keyframes icon-appear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.success-content,
.error-content {
    text-align: center;
}

.success-content h2,
.error-content h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-content p,
.error-content p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Actions */
.actions {
    margin-top: 2rem;
    text-align: center;
}

/* Security Tips */
.security-tips {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.security-tips h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    color: #4a5568;
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.security-tips li i {
    color: var(--success-color);
    margin-top: 0.1rem;
}

/* Invalid Link Styles */
.invalid-link {
    text-align: center;
    padding: 2rem;
}

.invalid-link i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.invalid-link h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.invalid-link p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Loading States */
.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn.loading {
    color: transparent;
}

.btn.loading .loading {
    display: block;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }

    .success-icon,
    .error-icon {
        font-size: 3rem;
    }

    .success-content h2,
    .error-content h2 {
        font-size: 1.5rem;
    }

    .btn {
        display: block;
        margin: 0.5rem 0;
    }

    .btn.inline {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Email Styles (for email templates) */
.email-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

.email-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.email-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.email-logo {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.email-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.email-body {
    margin: 30px 0;
    line-height: 1.8;
}

.reset-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.email-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.link-text {
    word-break: break-all;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.8rem;
}

.email-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}
