/* Auth System Styles - HesapTedarik Theme */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #16161f;
    --tertiary-bg: #1e1e2a;
    --accent-color: #1e3a8a;
    --accent-secondary: #1e40af;
    --accent-hover: #2563eb;
    --accent-light: rgba(30, 58, 138, 0.2);
    --accent-lighter: rgba(30, 58, 138, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6c6c7e;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(22, 22, 31, 0.8);
    --gradient-accent: linear-gradient(135deg, #1e3a8a, #1e40af);
    --gradient-card: linear-gradient(145deg, rgba(22, 22, 31, 0.9), rgba(10, 10, 15, 0.9));
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 10px 30px rgba(30, 58, 138, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auth Page Layout */
.auth-page {
    height: 100vh;
    background: radial-gradient(ellipse at center, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(2px);
    z-index: 0;
    animation: morphOverlay 12s infinite ease-in-out;
}

@keyframes morphOverlay {
    0%, 100% {
        background: radial-gradient(circle at 30% 30%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 70% 70%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    }
    33% {
        background: radial-gradient(circle at 60% 20%, rgba(30, 58, 138, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
    }
    66% {
        background: radial-gradient(circle at 80% 60%, rgba(30, 58, 138, 0.18) 0%, transparent 50%),
                    radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.12) 0%, transparent 50%);
    }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Auth Card */
.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 20px 20px 0 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.auth-logo-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.auth-logo-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 2;
}

.auth-logo-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-accent);
    border-radius: 15px;
    filter: blur(10px);
    opacity: 0.6;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.auth-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.auth-logo-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1;
    min-height: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    background: rgba(30, 58, 138, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-input-icon:hover {
    color: var(--accent-color);
}

/* Checkbox & Remember Me */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.form-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    appearance: none;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.form-checkbox:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-checkbox-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.auth-submit {
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 0.125rem;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit:hover::before {
    left: 100%;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.auth-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--accent-color);
}

.auth-link-primary {
    color: var(--accent-color);
    font-weight: 600;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-top: 0.25rem;
}

.forgot-password-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.forgot-password-link a:hover {
    color: var(--accent-color);
}

/* Social Login (Optional) */
.social-login {
    margin: 0.75rem 0;
    flex-shrink: 0;
}

.social-divider {
    position: relative;
    text-align: center;
    margin: 0.5rem 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    background: var(--secondary-bg);
    color: var(--text-muted);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(30, 58, 138, 0.1);
}

/* Error & Success Messages */
.message {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b5b;
}

.message-success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #5ac461;
}

.message-info {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #5cb3f7;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Register Page Specific Optimizations */
.register-compact .auth-form {
    gap: 0.625rem;
}

.register-compact .form-group {
    gap: 0.1rem;
}

.register-compact .form-label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}

.register-compact .form-input {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
}

.register-compact .form-checkbox-group {
    margin: 0.1rem 0;
}

.register-compact .auth-submit {
    padding: 0.625rem 1rem;
    margin-top: 0;
}

.register-compact .social-login {
    margin: 0.375rem 0;
}

.register-compact .auth-links {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 0.5rem;
        height: 100vh;
    }
    
    .auth-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        max-height: calc(100vh - 1rem);
    }
    
    .auth-container {
        max-width: 100%;
        height: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .auth-title {
        font-size: 1.1rem;
    }
    
    .auth-logo-text {
        font-size: 1.25rem;
    }
    
    .auth-logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .auth-header {
        margin-bottom: 0.75rem;
    }
    
    .auth-form {
        gap: 0.625rem;
    }
    
    .form-group {
        gap: 0.25rem;
    }
    
    .form-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .form-label {
        font-size: 0.7rem;
    }
    
    .auth-submit {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    .social-login {
        margin: 0.5rem 0;
    }
    
    .auth-links {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    /* Register specific mobile optimizations */
    .register-compact .auth-form {
        gap: 0.5rem;
    }
    
    .register-compact .form-input {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .register-compact .form-label {
        font-size: 0.65rem;
    }
    
    .register-compact .auth-submit {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 0.375rem;
    }
    
    .auth-card {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }
    
    .auth-title {
        font-size: 1rem;
    }
    
    .auth-logo-text {
        font-size: 1.1rem;
    }
    
    .auth-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-input {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .auth-submit {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    .form-label {
        font-size: 0.65rem;
    }
    
    .auth-form {
        gap: 0.5rem;
    }
    
    /* Ultra compact for register on mobile */
    .register-compact .auth-header {
        margin-bottom: 0.5rem;
    }
    
    .register-compact .auth-logo {
        margin-bottom: 0.5rem;
    }
    
    .register-compact .auth-form {
        gap: 0.375rem;
    }
    
    .register-compact .form-input {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .register-compact .form-label {
        font-size: 0.6rem;
        margin-bottom: 0.1rem;
    }
    
    .register-compact .auth-submit {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .register-compact .social-login {
        margin: 0.25rem 0;
    }
    
    .register-compact .auth-links {
        margin-top: 0.375rem;
        padding-top: 0.375rem;
    }
    
    .register-compact .form-checkbox-label {
        font-size: 0.65rem;
    }
}

/* Back to Home Link */
.back-to-home {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.back-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(30, 58, 138, 0.1);
}

@media (max-width: 768px) {
    .back-to-home {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .back-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .back-btn span {
        display: none;
    }
    
    .back-btn i {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .back-btn {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }
    
    .back-btn i {
        font-size: 0.8rem;
    }
} 