/* Modernize Style Login Page */

:root {
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    height: 100vh;
    overflow: hidden;
}


/* Main Container - Split Layout */

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}


/* Hide full width top header */

.top-header {
    display: none;
}


/* Left Side - Login Form */

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    background: #ffffff;
    overflow-y: auto;
}


/* Left Top Header - Logo and Language */

.left-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
    padding-bottom: 2rem;
}

.header-logo {
    height: 25px;
    width: auto;
    object-fit: contain;
}


/* Language Selector - Ana sayfa stili */

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.lang-btn img {
    display: none;
}

.lang-btn:hover {
    border-color: rgb(1, 173, 201);
    color: rgb(1, 173, 201);
    text-decoration: none;
}

.lang-btn.active {
    background: #1a365d;
    border-color: #1a365d;
    color: white;
    text-decoration: none;
}


/* Hide old elements */

.left-header,
.logo-section {
    display: none;
}


/* Login Box - Centered */

.login-box {
    width: 100%;
    max-width: 450px;
    margin: auto;
}


/* Welcome Section */

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2a3547;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.welcome-text {
    font-size: 0.95rem;
    color: #5a6a85;
    margin: 0;
    font-weight: 400;
}


/* Form Styles */

.login-form {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2a3547;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    position: relative;
}

.input-icon {
    display: none;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2a3547;
}

.form-control::placeholder {
    color: #a8b3c9;
}


/* .form-control:focus {
    background: #ffffff;
    border-color: rgb(1, 173, 201);
    box-shadow: 0 0 0 3px rgba(1, 173, 201, 0.08);
    outline: none;
} */

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a8b3c9;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
    padding: 0.25rem;
}

.toggle-password:hover {
    color: rgb(1, 173, 201);
}


/* Form Options */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    border: 1.5px solid #dfe5ef;
}

.form-check-label {
    font-size: 0.875rem;
    color: #5a6a85;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.form-check-input:checked {
    background-color: rgb(1, 173, 201);
    border-color: rgb(1, 173, 201);
}

.forgot-link {
    font-size: 0.875rem;
    color: rgb(1, 173, 201);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: rgb(1, 155, 180);
}


/* Login Button */

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: rgb(1, 173, 201) !important;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(1, 173, 201, 0.2);
}

.btn-login:hover {
    background: rgb(1, 155, 180);
    box-shadow: 0 4px 8px rgba(1, 173, 201, 0.3);
    color: white;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    display: inline-block;
}

.btn-loader {
    display: inline-block;
}


/* Hide social and divider */

.divider,
.btn-social {
    display: none;
}


/* Register Link */

.register-link {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link p {
    color: #5a6a85;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.register-link a {
    color: rgb(1, 173, 201);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link a:hover {
    color: rgb(1, 155, 180);
}


/* Hide footer */

.login-footer {
    display: none;
}


/* Right Side - Illustration */

.login-right {
    flex: 1;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
    color: #2a3547;
    position: relative;
    z-index: 2;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    width: 80px;
    height: 80px;
    background: #ffffff;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1ab3ff;
    animation: slideUp 0.6s ease-out;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    animation: slideUp 0.8s ease-out 0.1s backwards;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}


/* Clean Features List */

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    /* border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.feature-item:nth-child(1) {
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.feature-item:nth-child(2) {
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.feature-item:nth-child(3) {
    animation: slideUp 0.8s ease-out 0.5s backwards;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #f5f7fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #1ab3ff;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.feature-content p {
    font-size: 0.875rem;
    color: #5a6a85;
    margin: 0;
    line-height: 1.5;
}


/* Hide stats */

.hero-stats {
    display: none;
}


/* Background Decoration */

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.15;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(1, 173, 201, 0.08);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
}


/* Error Alert */

.alert {
    border-radius: 6px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    border: none;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
}

.alert-success {
    background-color: #f0fdf4;
    color: #10b981;
    border-left: 3px solid #10b981;
}


/* Responsive Design */

@media (max-width: 992px) {
    .login-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .left-top-header {
        padding-bottom: 1.5rem;
    }
    .header-logo {
        height: 33px;
    }
    .lang-btn span {
        display: none;
    }
    .lang-btn {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 1.5rem;
    }
    .left-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    .header-logo {
        height: 30px;
    }
    .login-box {
        max-width: 100%;
    }
    .welcome-title {
        font-size: 1.5rem;
    }
    .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}


/* Loading Animation */

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

.fa-spin {
    animation: spin 1s linear infinite;
}


/* Shake Animation */

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* Modal Styles - Large */

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a3547;
}

.modal-title i {
    color: rgb(1, 173, 201);
    font-size: 1.2rem;
}

.modal-body {
    padding: 2rem;
    background: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h6 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a3547;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.9rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-body ul {
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.modal-body ul li {
    font-size: 0.9rem;
    color: #5a6a85;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: #2a3547;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-close {
    font-size: 1rem;
}

.text-primary {
    color: rgb(1, 173, 201) !important;
}

.text-primary:hover {
    color: rgb(1, 155, 180) !important;
}