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

* {
    margin: 0;
    padding: 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;
}

.signup {
    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;
}

.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;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 4px 0 2px;
}

.step {
    position: relative;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #8a939c;
    padding-top: 12px;
}

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 4px;
    border-radius: 4px;
    background: #e4e8ec;
}

.step.is-done::before,
.step.is-active::before {
    background: linear-gradient(to left, #36CCFF, #34495e);
}

.step.is-active {
    color: #34495e;
}

.step-hint {
    text-align: center;
    font-size: 13px;
    color: #34495e;
    font-weight: 500;
}

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

.form-step {
    display: none;
    animation: stepIn 0.28s ease;
}

.form-step-active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.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;
}

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

.field textarea {
    min-height: 78px;
    resize: vertical;
}

.field input:focus,
.field textarea: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;
}

.file-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 14px;
    border: 1px dashed #b9c4ce;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    text-align: center;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-drop-title {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}

.file-drop-name {
    font-size: 12px;
    color: #6b7780;
    word-break: break-all;
}

.file-drop.has-file {
    border-color: #36CCFF;
    background: #f3fbff;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.actions .btn,
.actions .btn-prev,
.actions button[type="submit"] {
    flex: 1;
}

.btn,
button[type="submit"] {
    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,
button[type="submit"]:hover {
    opacity: 0.9;
}

.btn.disabled,
button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-prev {
    background: #e4e6eb;
    color: #1c1e21;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.btn-prev:hover {
    background: #ccd0d5;
}

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

.auth-switch a {
    color: #36CCFF;
    cursor: pointer;
    font-weight: 600;
}

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

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

    .signup {
        max-width: 100%;
    }

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

    .auth-switch {
        white-space: normal;
    }
}
