@import url('modal.css');
@import url('bottomsheet.css');
@import url('toas.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(to left, #36CCFF, #34495e);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.site {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #f44336;
}

.login {
    width: 100%;
    max-width: 420px;
}

.form {
    background: #fff;
    padding: 28px 24px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: formIn 0.35s ease;
}

@keyframes formIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.nameapp {
    text-align: center;
}

.nameapp img {
    display: inline-block;
}

.h1-titles {
    border-bottom: 2px dashed #34495e;
    text-align: center;
    background: linear-gradient(to left, #36CCFF, #34495e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    font-weight: 600;
    padding-bottom: 6px;
}

.lead {
    text-align: center;
    color: #5a6570;
    font-size: 13px;
    margin-top: -4px;
}

.form-alert {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
}

.field {
    display: flex;
    flex-direction: column;
}

.nom-edith {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 6px;
    color: #34495e;
}

.nom-edith i {
    color: #36CCFF;
    width: 16px;
    text-align: center;
}

.form input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: #1c1e21;
    background: #fff;
}

.form input:focus {
    border-color: #36CCFF;
    box-shadow: 0 0 5px rgba(54, 204, 255, 0.5);
}

.password-group {
    position: relative;
}

.password-group input {
    padding-right: 42px;
}

.password-group i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #606770;
}

.forgot-password {
    text-align: right;
    margin-top: -4px;
}

.btn {
    background: linear-gradient(to left, #36CCFF, #34495e);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

a {
    color: #36CCFF;
    font-size: 14px;
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #5a6570;
}

.auth-switch a {
    font-weight: 600;
}

.portal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.portal-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    background: #f7fafc;
    color: #34495e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.portal-links a:hover {
    border-color: #36CCFF;
    background: #f3fbff;
    color: #246294;
}

.portal-links i {
    color: #36CCFF;
}

.auth-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
    text-align: center;
}

.auth-foot-brand {
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
}

.auth-foot-version {
    font-size: 12px;
    color: #8a939c;
}

@media screen and (max-width: 768px) {
    body {
        display: block;
        padding: 0;
    }

    .site {
        padding: 0;
        min-height: 100vh;
    }

    .login {
        max-width: 100%;
    }

    .form {
        border-radius: 0;
        min-height: 100vh;
        justify-content: center;
        padding: 32px 20px;
    }

    .portal-links {
        grid-template-columns: 1fr;
    }
}
