/* Auth Pages Styles - Login & Register */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 32px;
    color: #ff4757;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #ff4757;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4757;
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.15);
}

.form-group input:valid {
    border-color: #2ecc71;
}

.form-group input::placeholder {
    color: #95a5a6;
}

/* Password Input Container */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff4757;
}

/* Password Strength & Match Indicators */
.password-strength, .password-match {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 20px 0;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    position: relative;
}

.terms-checkbox a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn i {
    font-size: 18px;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-bottom: 20px;
}

.auth-footer p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-footer a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #ff3742;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #ffe6e6;
    color: #d63031;
    border-left: 4px solid #d63031;
}

.alert-success {
    background: #e6f7e1;
    color: #00b894;
    border-left: 4px solid #00b894;
}

.alert i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        padding: 25px 20px;
        max-width: none;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .form-group input {
        padding: 10px;
    }
    
    .terms-checkbox label {
        font-size: 13px;
    }
}

/* Loading State */
.auth-btn.loading {
    pointer-events: none;
}

.auth-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Input Animation */
.form-group input {
    position: relative;
}

.form-group input:focus + .input-border {
    width: 100%;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    transition: width 0.3s ease;
}

/* Custom Scrollbar for smaller screens */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ff4757;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3742;
}