/* ===== AUTH PAGES CSS (login.html & register.html) ===== */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Header */
.auth-header {
    width: 100%;
    max-width: 500px;
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 4px;
    margin-top: -5px;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* Card */
.auth-card {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

/* Form */
.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.label-icon {
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.password-toggle:hover {
    transform: translateY(-50%) scale(1.1);
}

.eye-icon {
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.password-toggle:hover .eye-icon {
    opacity: 1;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-gray);
}

.form-footer {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password {
    font-size: 14px;
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3db8b0;
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-text a {
    color: #4ecdc4;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Messages */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loader {
    display: inline-block;
}

.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-gray);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.auth-divider span {
    padding: 0 15px;
}

/* Footer */
.auth-footer {
    text-align: center;
}

.auth-footer-text {
    font-size: 14px;
    color: var(--text-gray);
}

.auth-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #3db8b0;
    text-decoration: underline;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4ecdc4;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }
    
    .auth-header {
        padding: 20px 0 10px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
}