:root {
            --primary-color: #4a6fa5;
            --secondary-color: #166088;
            --accent-color: #4fc3f7;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --success-color: #28a745;
            --error-color: #dc3545;
            --border-radius: 8px;
            --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .login-container {
            display: flex;
            max-width: 1000px;
            width: 100%;
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: hidden;
            min-height: 600px;
        }

        .login-image {
            flex: 1;
            background: linear-gradient(rgba(22, 96, 136, 0.7), rgba(22, 96, 136, 0.7)), 
                        url('../img/banners/login.png') center/cover no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: white;
            text-align: center;
            display: none;
        }

        .login-image h2 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .login-image p {
            font-size: 1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .login-form {
            flex: 1;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        .logo {
            text-align: center;
            margin-bottom: 40px;
        }

        .logo img {
            max-width: 120px;
            margin-bottom: 15px;
        }

        .logo h1 {
            color: var(--secondary-color);
            font-size: 1.8rem;
            font-weight: 600;
        }

        .logo p {
            color: var(--dark-color);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark-color);
            font-weight: 500;
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-color);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px 12px 45px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
        }

        .btn-login {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
            transform: none;
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
        }

        .remember-me input {
            margin-right: 8px;
        }

        .forgot-password a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .forgot-password a:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            color: #777;
            font-size: 0.9rem;
        }

        .divider::before, .divider::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid #ddd;
        }

        .divider::before {
            margin-right: 10px;
        }

        .divider::after {
            margin-left: 10px;
        }

        .social-login {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .social-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--light-color);
            color: var(--dark-color);
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .social-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .social-btn.google { color: #DB4437; }
        .social-btn.microsoft { color: #0078D7; }
        .social-btn.apple { color: #000; }

        .register-link {
            text-align: center;
            margin-top: 20px;
            font-size: 0.9rem;
        }

        .register-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }

        .register-link a:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }

        /* Preloader */
        .preloader {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .preloader.active {
            opacity: 1;
            visibility: visible;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        .preloader p {
            color: var(--dark-color);
            font-size: 1rem;
            margin-top: 10px;
        }

        /* Mensagem de erro */
        .error-message {
            color: var(--error-color);
            font-size: 0.9rem;
            margin-top: 5px;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @media (min-width: 768px) {
            .login-image {
                display: flex;
            }
        }

        /* Animações */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-form {
            animation: fadeIn 0.6s ease-out;
        }

        /* Dark mode opcional */
        @media (prefers-color-scheme: dark) {
            body {
                background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
            }

            .login-container {
                background-color: #343a40;
                color: #f8f9fa;
            }

            .logo h1, .form-group label, .register-link, .logo p {
                color: #f8f9fa;
            }

            .form-control {
                background-color: #495057;
                border-color: #6c757d;
                color: #f8f9fa;
            }

            .form-control:focus {
                border-color: var(--accent-color);
                box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.3);
            }

            .social-btn {
                background-color: #495057;
                color: #f8f9fa;
            }

            .preloader {
                background-color: rgba(52, 58, 64, 0.9);
            }

            .preloader p {
                color: #f8f9fa;
            }
        }


        /* Estilos para o SweetAlert2 customizado */
.swal2-popup {
    border-radius: 15px !important;
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
}

.swal2-input {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 10px 0 !important;
}

.swal2-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Preloader customizado */
.preloader.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Animações suaves */
.swal2-show {
    animation: swal2-show 0.3s !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Toast notifications personalizadas */
.swal2-toast {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Estilos para o modal de cadastro */
.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.account-type-card:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.form-check-input:checked + .account-type-card {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.account-type-card h6 {
    margin: 0;
    font-weight: 600;
}

.account-type-card small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Campos específicos */
#campos_aluno,
#campos_professor {
    transition: all 0.3s ease;
}

/* Loading para escolas */
.loading-escolas {
    opacity: 0.6;
    pointer-events: none;
}

/* Estilos para o upload de foto */
.avatar-upload-preview {
    position: relative;
    display: inline-block;
}

.avatar-upload-preview img {
    transition: all 0.3s ease;
    border: 3px solid #dee2e6;
}

.avatar-upload-preview img:hover {
    border-color: #007bff;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper .form-control {
    padding: 0.5rem;
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload-wrapper .form-control:hover {
    border-color: #007bff;
    background-color: #e7f3ff;
}

/* Cards de tipo de conta */
.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.account-type-card:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.form-check-input:checked + .account-type-card {
    border-color: #007bff;
    background-color: #e7f3ff;
}