*,
*::before,
*::after {
    box-sizing: border-box;
    outline: none !important;
}

*:focus {
    outline: none;
}

html {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

main {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1.25rem;
    background-color: #ffffff;
    width: 94%;
    max-width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-top: 8vh;
}

main .logo {
    max-width: 200px;
    margin-bottom: 1.25rem;
    height: auto;
}

main h4 {
    color: #1a237e;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-align: center;
    font-size: 1.25rem;
}

main .form-group label {
    color: #333;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

main .form-control {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: #333;
    height: auto;
    font-size: 1rem;
}

main .form-control:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
    background-color: #fff;
}

main .input-group .input-group-prepend {
    background-color: #1a237e;
    padding: 0 1rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main .input-group .input-group-prepend svg {
    fill: #fff;
    width: 18px;
    height: 18px;
}

main .input-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-primary {
    background-color: #1a237e !important;
    border-color: #1a237e !important;
    border-radius: 8px !important;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #0d1642 !important;
    border-color: #0d1642 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.btn-outline-primary {
    color: #1a237e !important;
    border-color: #1a237e !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #1a237e !important;
    color: #fff !important;
}

.link-login {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
}

.link-login:hover {
    color: #0d1642;
    text-decoration: underline;
}

footer#seletor {
    margin-top: auto;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    main {
        width: 96%;
        padding: 1.5rem 1rem;
        margin-top: 5vh;
        border-radius: 10px;
    }

    main .logo {
        max-width: 160px;
    }

    main h4 {
        font-size: 1.1rem;
    }

    main .form-control {
        font-size: 16px; /* evita zoom no iOS */
    }
}

@media (max-width: 360px) {
    main {
        width: 98%;
        padding: 1.25rem 0.875rem;
        margin-top: 3vh;
    }

    main .logo {
        max-width: 140px;
    }
}
