/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 47.4%, 11.2%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222.2, 47.4%, 11.2%);
    --primary: hsl(211, 100%, 50%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(210, 40%, 96.1%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --accent: hsl(211, 86%, 70%);
    --accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(211, 100%, 50%);

    /* Transport theme colors */
    --transport-blue: #003a92;
    --transport-blue-light: hsl(211, 86%, 70%);
    --transport-dark: hsl(222.2, 47.4%, 11.2%);
    --transport-gray: hsl(215.4, 16.3%, 46.9%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--transport-blue), var(--transport-blue-light));
    --gradient-hero: linear-gradient(135deg, var(--transport-blue) 0%, var(--transport-blue-light) 100%);

    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(211, 100%, 50%, 0.3);
    --shadow-form: 0 8px 32px hsl(211, 100%, 50%, 0.1);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Navbar Style */
header {
    background: #fff;
    width: 100%;
    height: 85px;
    color: #007fc9;
    position: fixed;
    z-index: 9999;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    margin: 10px;
    width: 220px;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 30px;
}

.navbar ul {
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin: 0 15px;
    list-style: none;
}

.navbar ul li a {
    position: relative;
    padding: 8px 0;
    color: #007fc9;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s linear;
}

.navbar ul li a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    height: 5px;
    border-radius: 10px;
    background-color: #00a5b1;
    transition: all 0.3s cubic-bezier(1, 1, 1, 1);
}

.nav-link {
    padding: 15px;
    margin: 0.6rem;
}

.login:hover {
    background: #003a92;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #007fc9;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.hamburger {
    display: none;
    position: relative;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.hamburger span {
    display: inline-block;
    width: 100%;
    height: 3px;
    background-color: #007fc9;
    position: absolute;
    top: calc(50% - 1.5px);
    left: 0;
    transition: all 0.2s;
}

.hamburger span:first-child {
    transform: translateY(-300%);
    transform-origin: right top;
}

.hamburger span:last-child {
    transform: translateY(300%);
    transform-origin: right bottom;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) scaleX(0.5) translateX(4px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) scaleX(0.5) translateX(4px);
}

/* Navbar media query */
@media (max-width: 992px) {
    header {
        padding: 1px;
        background-color: #fff;
    }

    .navbar-container {
        max-width: 940px;
    }

    .hamburger {
        display: block;
    }

    .navbar ul {
        position: fixed;
        top: 80px;
        right: 0;
        width: 220px;
        height: 100%;
        padding: 40px 0;
        background-color: #f7f7f7;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        box-shadow: -8px 2px 10px rgba(0, 0, 0, 0.082);
        transform: translateX(100%);
        text-align: center;
        border-radius: 15px;
        transition: all 0.3s;
    }

    .navbar ul.active {
        transform: translateX(0);
    }

    .navbar ul li {
        margin: 0;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 15px;
    }

    .navbar ul li a::after {
        display: none;
    }

    .navbar ul li a:hover {
        color: #080808;
        background-color: #f0f0f0;
    }

    .navbar ul li a.active {
        color: #fff;
        background-color: #4761ff;
        border-radius: 10px;
    }

}

@media (max-width: 768px) {
    header {
        padding: 1px;
        height: 80px;
    }

    .navbar-container {
        max-width: 650px;
    }

    .navbar .logo {
        height: 100%;
    }
}

@media (max-width: 992px) {
    .navbar .logo {
        width: 200px;
    }
}

@media (max-width: 375px) {
    .navbar .logo {
        width: 200px;
    }
}

/* Page Container */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background) 0%, var(--background) 50%, hsl(210, 40%, 96.1%, 0.3) 100%);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../assets/home-bg.jpg) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            hsl(222.2, 47.4%, 11.2%, 0.8) 0%,
            hsl(211, 100%, 50%, 0.6) 50%,
            hsl(211, 86%, 70%, 0.7) 100%);
}

.content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: white;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.gradient-text {
    display: block;
    background: #4ecdff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin: 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Form Styles */
.form-container {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .form-container {
        justify-content: flex-end;
    }
}

.form-card {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.836);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-form);
    border: 0;
}

.form-header {
    text-align: center;
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 1.5rem;
}

.form-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--primary-foreground);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003a92;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.form-content {
    padding: 0 1.5rem 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #003a92;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(211, 100%, 50%, 0.2);
}

.form-input.error {
    border-color: var(--destructive);
}

.form-input.error:focus {
    box-shadow: 0 0 0 2px hsl(0, 84.2%, 60.2%, 0.2);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    font-size: 0.875rem;
    color: var(--destructive);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-smooth);
    height: 0;
    overflow: hidden;
}

.error-message.show {
    opacity: 1;
    transform: translateX(0);
    height: auto;
    margin-top: 0.25rem;
}

.submit-button {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 0.75rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.02);
}

.submit-button:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-button:disabled {
    cursor: not-allowed;
}

.button-text {
    display: block;
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .loading-spinner {
    display: flex;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--primary-foreground);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Wave */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.wave {
    width: 100%;
    height: 3rem;
    fill: var(--background);
}

/* Features Section */
.features-section {
    padding: 4rem 1rem;
}

.features-container {
    max-width: 72rem;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.features-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto;
}

.features-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: var(--card);
    border: 1px solid rgba(214, 219, 220, 0.5);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: var(--shadow-elegant);
}

.feature-card-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-bg {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-foreground);
    border-radius: 0.25rem;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card-text {
    color: var(--muted-foreground);
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    padding: 1rem;
    max-width: 20rem;
    animation: toast-slide-in 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid hsl(142, 76%, 36%);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

.toast-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 10px;
    /* Largura da barra de rolagem */
}

/* Estilizando a parte interna da barra de rolagem */
::-webkit-scrollbar-track {
    background: #303030;
    /* Cor do fundo da barra de rolagem */
}

/* Estilizando o polegar da barra de rolagem */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to top, #003a92, #00a2ff);
    /* Cor do polegar da barra de rolagem */
    border-radius: 15px;
    /* Bordas arredondadas no polegar */
}

/* Cor do polegar ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: #00aeff;
    /* Cor do polegar ao passar o mouse */
}

::selection {
    background-color: #001824;
    color: #fff;
}

/* Algumas propriedades funcionam nas opções */
#course option {
  padding: 10px; /* funciona em alguns navegadores */
  background-color: #fff;
  color: #111;
}

/* Para o optgroup */
#course optgroup {
  font-weight: bold;
  background-color: #eee;
  color: #111;
}
