/**
 * Authentication Pages (Login & Register)
 * Styles for login.php and register.php
 */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px;
}

.sk-back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    z-index: 10;
}

.sk-back-link:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow);
}

.sk-auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sk-auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 50px 45px;
    width: 100%;
    max-width: 480px;
}

.sk-auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.sk-auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-auth-logo img {
    max-width: 100%;
    max-height: 100%;
}

.sk-auth-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--primary-shadow-logo);
}

.sk-auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
}

.sk-auth-header p {
    color: #888;
    margin: 0;
    font-size: 16px;
}

.sk-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.sk-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
    color: #666;
    background: #fff;
}

.sk-lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sk-lang-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.sk-lang-btn .fi {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.form-label {
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
    font-size: 15px;
}

.form-control, .form-select {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--primary-shadow-focus);
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-select {
    border-right: none;
    border-radius: 12px 0 0 12px;
    max-width: 140px;
}

.input-group .btn {
    border: 2px solid #e8e8e8;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
}

.input-group .form-control:focus + .btn, .input-group .form-select:focus + .btn {
    border-color: var(--primary);
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    border: 2px solid #ddd;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding-left: 5px;
}

.form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-check-label a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: var(--primary-shadow-btn);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--primary-shadow-hover);
    background: var(--gradient);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

.alert {
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #dc3545;
}

.sk-auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.sk-auth-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sk-auth-links a:hover {
    color: var(--primary);
}

.sk-auth-links .divider {
    margin: 0 15px;
    color: #ddd;
}

/* Register Page Specific Styles */
.sk-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.sk-form-col {
    flex: 1;
}

.sk-step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.sk-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sk-step.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--primary-shadow);
    transform: scale(1.1);
}

.sk-step.completed {
    background: #28a745;
    color: #fff;
}

.sk-step-divider {
    flex: 1;
    height: 2px;
    background: #e5e5e5;
    max-width: 60px;
}

.sk-form-step {
    display: none;
}

.sk-form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sk-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.sk-form-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Password Requirements */
.sk-password-requirements {
    margin-top: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.sk-password-requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sk-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.sk-requirement:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sk-requirement-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sk-requirement-icon svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.sk-requirement span {
    flex: 1;
}

.sk-requirement.valid {
    color: #28a745;
}

.sk-requirement.valid .sk-requirement-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.sk-requirement.valid .sk-requirement-icon svg {
    opacity: 1;
    transform: scale(1);
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 24px !important;
}

.mb-3 {
    margin-bottom: 20px !important;
}

/* Responsive */
@media (max-width: 576px) {
    .sk-auth-card {
        padding: 40px 30px;
    }

    .sk-form-row {
        flex-direction: column;
        gap: 0;
    }

    .sk-back-link {
        position: static;
        margin-bottom: 20px;
        display: inline-flex;
        width: auto;
    }

    body {
        padding: 10px;
    }
}
