/* ==========================
   RESET
========================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}


/* ==========================
   BODY
========================== */

body {
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.45),
            rgba(255, 255, 255, 0.45)
        ),
        url('/Explicação/public/assets/images/Aulas.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}


/* ==========================
   CONTAINER
========================== */

.container {
    width: 100%;
    max-width: 500px;

    background: rgba(
        255,
        255,
        255,
        0.96
    );

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(4px);
}


/* ==========================
   TÍTULO
========================== */

h1 {
    text-align: center;

    color: #1e3a5f;

    margin-bottom: 10px;
}


.subtitle {
    text-align: center;

    color: #777;

    margin-bottom: 30px;
}


/* ==========================
   FORMULÁRIO
========================== */

.form-group {
    margin-bottom: 18px;
}


label {
    display: block;

    margin-bottom: 7px;

    color: #333;

    font-weight: 600;
}


input,
select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d5dce5;

    border-radius: 10px;

    font-size: 15px;

    outline: none;

    background: white;

    transition: 0.2s;
}


input:focus,
select:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px
        rgba(
            59,
            130,
            246,
            0.10
        );
}


/* ==========================
   PASSWORD
========================== */

.senha-container {
    position: relative;

    width: 100%;
}


.senha-container input {
    padding-right: 50px;
}


.toggle-password {
    position: absolute;

    right: 8px;
    top: 0;

    width: 43px;
    height: 43px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;
}


.toggle-password:hover {
    background:
        rgba(
            0,
            86,
            179,
            0.08
        );
}


.toggle-password img {
    width: 22px;
    height: 22px;

    display: block;

    object-fit: contain;
}


/* ==========================
   DESCRIÇÃO
========================== */

.field-description {
    margin-bottom: 10px;

    color: #777;

    font-size: 13px;
}


/* ==========================
   DISCIPLINAS
========================== */

.disciplinas-list {
    display: flex;

    flex-direction: column;

    gap: 8px;

    width: 100%;
}


.disciplina-option {
    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    width: 100%;

    min-height: 42px;

    margin: 0;

    padding: 10px 12px;

    border: 1px solid #e1e6ed;

    border-radius: 8px;

    background: #fff;

    cursor: pointer;

    color: #333;

    font-weight: normal;

    line-height: normal;

    transition: 0.2s;
}


.disciplina-option:hover {
    background: #f8fafc;

    border-color: #3b82f6;
}


.disciplina-option input[type="checkbox"] {
    appearance: auto;

    width: 18px;

    height: 18px;

    min-width: 18px;

    max-width: 18px;

    margin: 0;

    padding: 0;

    border: none;

    box-shadow: none;

    cursor: pointer;

    flex: 0 0 18px;
}


.disciplina-option input[type="checkbox"]:focus {
    box-shadow: none;
}


.disciplina-option span {
    display: flex;

    align-items: center;

    flex: 1;

    min-width: 0;

    margin: 0;

    padding: 0;

    line-height: 20px;

    font-size: 15px;

    color: #333;

    font-weight: normal;
}


.disciplina-option input[type="checkbox"]:checked + span {
    font-weight: 600;

    color: #2563eb;
}


/* ==========================
   ERROS
========================== */

.error {
    background: #ffe8e8;

    color: #b42318;

    padding: 12px 15px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-size: 14px;
}


.error ul {
    padding-left: 20px;
}


/* ==========================
   SEM CORES
========================== */

.no-colors {
    background: #fff4e5;

    color: #9a6700;

    padding: 12px;

    border-radius: 10px;

    margin-bottom: 18px;

    font-size: 14px;
}


/* ==========================
   BOTÃO
========================== */

.button {
    width: 100%;

    border: none;

    padding: 14px;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


.button:hover {
    background: #1d4ed8;
}


.button:disabled {
    background: #9ca3af;

    cursor: not-allowed;
}


/* ==========================
   LOGIN
========================== */

.login-link {
    text-align: center;

    margin-top: 22px;

    color: #666;
}


.login-link a {
    color: #2563eb;

    text-decoration: none;

    font-weight: bold;
}


.login-link a:hover {
    text-decoration: underline;
}


/* ==========================
   DROPDOWN DE CORES
========================== */

.color-select {
    position: relative;

    width: 100%;
}


.color-select-button {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d5dce5;

    border-radius: 10px;

    background: white;

    font-size: 15px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

    transition: 0.2s;
}


.color-select-button:hover {
    border-color: #3b82f6;
}


.color-select-button:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px
        rgba(
            59,
            130,
            246,
            0.10
        );

    outline: none;
}


/* ==========================
   PREVIEW DA COR
========================== */

.color-preview {
    width: 18px;

    height: 18px;

    min-width: 18px;

    border-radius: 50%;

    border: 1px solid
        rgba(
            0,
            0,
            0,
            0.15
        );

    background: #e5e7eb;

    display: inline-block;

    flex-shrink: 0;
}


.color-selected-text {
    flex: 1;

    color: #333;
}


.color-arrow {
    font-size: 11px;

    color: #777;

    transition: 0.2s;
}


.color-select.open .color-arrow {
    transform: rotate(180deg);
}


/* ==========================
   LISTA DAS CORES
========================== */

.color-options {
    position: absolute;

    top: calc(100% + 5px);

    left: 0;

    width: 100%;

    background: white;

    border: 1px solid #d5dce5;

    border-radius: 10px;

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.12
        );

    padding: 5px;

    display: none;

    z-index: 1000;

    max-height: 230px;

    overflow-y: auto;
}


.color-select.open .color-options {
    display: block;
}


/* ==========================
   CADA COR
========================== */

.color-option {
    width: 100%;

    min-height: 42px;

    padding: 9px 10px;

    border: none;

    border-radius: 7px;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

    font-size: 15px;

    color: #333;

    cursor: pointer;
}


.color-option:hover {
    background:
        rgba(
            37,
            99,
            235,
            0.08
        );
}


.color-option.selected {
    background:
        rgba(
            37,
            99,
            235,
            0.10
        );

    font-weight: 600;
}


/* ==========================
   RESPONSIVO
========================== */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }


    .container {
        padding: 30px 22px;

        border-radius: 16px;
    }

}