@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Paleta de Cores */
:root {
    --primary-blue: #1E6FFF;
    --black: #111111; /*not really lmao*/
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --box-shadow-sm: 
        0px 1px 1px rgba(3, 7, 18, 0.02),
        0px 5px 4px rgba(3, 7, 18, 0.02),
        0px 12px 9px rgba(3, 7, 18, 0.01),
        0px 20px 16px rgba(3, 7, 18, 0.01),
        0px 32px 25px rgba(3, 7, 18, 0.00);/* https://smoothshadows.com/#djEsMiw1LDAuMDIsMjUsMzIsMCwjMDMwNzEyLCNmM2Y0ZjYsI2ZmZmZmZiwy */

    --box-shadow-md: 
        0px 1px 1px rgba(3, 7, 18, 0.01),
        0px 5px 4px rgba(3, 7, 18, 0.01),
        0px 12px 9px rgba(3, 7, 18, 0.02),
        0px 20px 16px rgba(3, 7, 18, 0.02),
        0px 32px 25px rgba(3, 7, 18, 0.03);/* https://smoothshadows.com/#djEsMSw1LDAuMDMsMjUsMzIsMCwjMDMwNzEyLCNmM2Y0ZjYsI2ZmZmZmZiwy */


    --box-shadow-colored-sm: 
        0px 0px 1px rgba(30, 111, 255, 0.03),
        0px 0px 4px rgba(30, 111, 255, 0.06),
        0px 0px 9px rgba(30, 111, 255, 0.09),
        0px 0px 16px rgba(30, 111, 255, 0.12),
        0px 0px 25px rgba(30, 111, 255, 0.15);
    /* https://smoothshadows.com/#djEsMSw1LDAuMTUsMjUsMCwwLCMxZTZmZmYsI2YzZjRmNiwjZmZmZmZmLDI%3D */

    --box-shadow-colored-md:
            /* https://smoothshadows.com/#djEsMSw1LDAuNDQsMzcsMCwwLCM0MmEwZmYsI2YzZjRmNiwjZmZmZmZmLDI%3D */
            0px 0px 1px rgba(66, 160, 255, 0.09),
            0px 0px 6px rgba(66, 160, 255, 0.18),
            0px 0px 13px rgba(66, 160, 255, 0.26),
            0px 0px 24px rgba(66, 160, 255, 0.35),
            0px 0px 37px rgba(66, 160, 255, 0.44);

    --font-sans-base: -apple-system BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --font-sans: 
        Poppins, var(--font-sans-base);

    --font-boring: Roboto, var(--font-sans-base);
    --font-header: "Space Grotesk";
    --font-mono: "Google Sans Code";

}
.font-sans{
    font-family: var(--font-sans);
}
.font-boring{
    font-family: var(--font-boring);
}
.font-header{
    font-family: var(--font-header);
}
.font-mono{
    font-family: var(--font-mono);
}





/* Reset e Base */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    font-family: var(--font-sans);
}

.auth-header, .card-header, .main-header, header, h1, h2, h3, h4 {
    font-family: var(--font-header);
}
code{
    font-family: var(--font-mono);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--light-gray);
    margin-bottom: 200px;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary-blue);
}

.logo-symbol {
    height: 28px;
    width: auto;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-symbol {
    transform: rotate(15deg);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    /* transform: translateY(-2px); */
    box-shadow: var(--box-shadow-md);
}

.card-header {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Botões Customizados */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056d6;
    border-color: #0056d6;
    box-shadow: var(--box-shadow-colored-sm);
}

.btn-primary:focus,
.btn-primary:active:focus {
    box-shadow: var(--box-shadow-colored-md);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
}

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

/* Formulários */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 111, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Alertas */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
.main-footer {
    background-color: var(--white);
    border-top: 1px solid #dee2e6;
    padding: 2rem 0;
    margin-top: auto;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
}

.main-footer h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main-footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

/* Páginas de Autenticação */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow-sm);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-logo {
    max-width: 150px;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Validação */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc3545;
}

/* Responsividade Mobile-First */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }

    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 32px;
    }

    .logo-symbol {
        height: 22px;
        margin-left: 5px;
    }

    .main-footer {
        height: auto;
        padding: 1.5rem 0;
    }

    .main-footer .row {
        text-align: center;
    }

    .main-footer .text-md-end {
        text-align: center !important;
    }
}

/* Utilitários */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

.bg-primary-custom {
    background-color: var(--primary-blue) !important;
}

.bg-light-custom {
    background-color: var(--light-gray) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056d6 100%);
    color: white;
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-logo-img {
    filter: brightness(0) invert(1);
    animation: fadeInUp 0.8s ease-out;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1.2s ease-out;
}

.hero-actions {
    animation: fadeInUp 1.4s ease-out;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    /* transform: translateY(-2px); */
    box-shadow: var(--box-shadow-colored-sm);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: var(--box-shadow-md);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}

.info-section h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.info-section ul li {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-logo img {
        max-width: 200px !important;
    }

    .features-section {
        padding: 2rem 0;
    }

    .info-section {
        padding: 2rem 0;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056d6;
}

/* Focus States */
/* .btn:focus, */
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:active:focus,
.form-check-input:active:focus {
    box-shadow: var(--box-shadow-colored-sm);
}

.validation-message{
    color: var(--bs-danger)
}
