﻿:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
    --accent-color: #36b9cc;
    --text-dark: #5a5c69;
    --text-light: #858796;
}

@font-face {
    font-family: 'Poppins';
    src: url('Poppins-Regular.eot');
    src: url('../css/fonts/Poppins/Poppins-Regular.eot?#iefix') format('embedded-opentype'), url('../../css/fonts/Poppins/Poppins-Regular.woff2') format('woff2'), url('../../css/fonts/Poppins/Poppins-Regular.woff') format('woff'), url('../../css/fonts/Poppins/Poppins-Regular.ttf') format('truetype'), url('../../css/fonts/Poppins/Poppins-Regular.svg#Poppins-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fc;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 70%;
    z-index: -1;
}

.shape-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #224abe);
    opacity: 0.1;
}

.shape-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #2a96a5);
    opacity: 0.1;
}

.shape-3 {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #1cc88a, #17a673);
    opacity: 0.05;
    transform: rotate(45deg);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    }

.login-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, #224abe 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.login-header h3 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text-dark);
    }

.form-control {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }

.input-icon {
    position: absolute;
    right: 15px;
    top: 60%;
    color: var(--text-light);
    pointer-events: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #224abe 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background: linear-gradient(180deg, #224abe 0%, var(--primary-color) 100%);
        transform: translateY(-2px);
    }

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

    .login-footer a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .login-footer a:hover {
            color: #224abe;
            text-decoration: underline;
        }

.system-info {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.85rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-container {
        height: auto;
        margin: 0;
    }

    .login-body {
        padding: 20px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 10px;
    }

    .shape-1, .shape-2, .shape-3 {
        display: none;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.5s ease;
}


.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.btn-dots-spinner {
    display: flex;
    align-items: center;
    height: 16px;
    margin-right: 8px;
}

    .btn-dots-spinner span {
        width: 4px;
        height: 4px;
        margin: 0 1px;
        background-color: white;
        border-radius: 50%;
        display: inline-block;
        animation: btn-bounce 1.4s infinite ease-in-out both;
    }

        .btn-dots-spinner span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .btn-dots-spinner span:nth-child(2) {
            animation-delay: -0.16s;
        }

/* Animasyonlar */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes btn-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}