﻿@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --primary-color: #20316D;
    --primary-dark: #2B43A5;
    --success-color: #58cc02;
    --success-dark: #46a302;
    --text-color: #3c3c3c;
    --bg-color: #ffffff;
    --border-color: #e5e5e5;
}

* {
    box-sizing: border-box;
}

body, html {
    font-family: 'Nunito', sans-serif;
    overflow-y: scroll;
}

body {
    background: radial-gradient(circle at center, #1a2a6c, #101835);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
}

    body::before, body::after {
        content: "";
        position: fixed; 
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(28, 176, 246, 0.1);
        z-index: -1;
        pointer-events: none;
    }

    body::before {
        top: -10%;
        left: -10%;
    }

    body::after {
        bottom: -10%;
        right: -10%;
        animation-delay: -10s;
    }

@keyframes floating {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(100px, 50px) rotate(30deg);
    }
}

.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 550px; 
    z-index: 1; 
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

    .logo-container h1 {
        font-size: 28px;
        font-weight: 800;
        color: var(--primary-color);
        margin: 0;
    }

html.swal2-shown,
body.swal2-shown {
    height: 100vh !important; 
    overflow: hidden !important; 
    display: flex !important;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    cursor: pointer;
    padding: 12px;
    font-weight: 800;
    color: #afafaf;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

    .tab.active {
        color: var(--primary-color);
        border-bottom: 4px solid var(--primary-color);
        margin-bottom: -2px;
    }

.form-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f7f7f7;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="password"], input[type="text"] {
    padding-right: 45px !important;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-eye {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #afafaf;
    transition: color 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .toggle-eye:hover {
        color: var(--primary-color);
    }

.form-group.d-flex.align-items-center {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
    gap: 8px; 
}

    .form-group.d-flex.align-items-center span {
        display: flex;
        align-items: center;
    }

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-bottom: 4px solid var(--primary-dark);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.1s;
    margin-top: 10px;
}

    .btn-primary:active {
        transform: translateY(2px);
        border-bottom-width: 2px;
    }

.btn-success {
    background: var(--success-color);
    border-bottom-color: var(--success-dark);
}

.btn-loading {
    cursor: wait !important;
    opacity: 0.8;
    background: linear-gradient(90deg, #1a2a6c, #2b43a5, #1a2a6c);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s infinite;
    pointer-events: none; 
}

@keyframes loading-gradient {
    0% {
        background-position: 100% 0%;
    }

    100% {
        background-position: -100% 0%;
    }
}

.hidden {
    display: none;
}

.error-label {
    display: block;
    margin-top: 15px;
    color: #ff4b4b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.light-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
    opacity: 0;
    animation: blink 8s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        max-width: 400px;
        min-width: 40px;
    }

    .logo-container h1 {
        font-size: 24px;
    }

    .tab {
        font-size: 12px;
        padding: 10px 5px;
    }
    .form-group.d-flex.align-items-center label {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .swal2-container {
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    div.swal2-popup {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 90vw !important;
        margin: 0 auto !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
        height: auto !important; 
        overflow-x: hidden !important;
    }

    .swal2-icon {
        transform: scale(0.7); 
        margin-top: 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    .swal2-title {
        font-size: 1.5rem !important;
        word-wrap: break-word !important;
    }

    .swal2-html-container {
        font-size: 1.2rem !important;
        margin: 0.5rem 0 0 !important;
    }
}