
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f9;
    color: #252525;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    z-index: 1000;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid #e9ecef;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 500;
}

.back-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

.back-link:hover {
    color: #168a80;
}

/* MAIN */
.main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: #f5f7f9;
}

/* LOGIN CARD */
.login-card {
    width: 100%;
    max-width: 585px;
    min-width: 0;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 35px 28px;
}

/* LOGO */
.logo-container {
    text-align: center;
    margin-bottom: 18px;
}

.main-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* TITLE */
h1 {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 10px;
    letter-spacing: -0.7px;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin: 0 0 28px;
}

/* LABELS */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

label {
    font-size: 14px;
    font-weight: bold;
}

.required {
    color: #e53935;
}

.required-badge {
    font-size: 12px;
    color: #555;
    background: #e9ebed;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

/* INPUTS */
.input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 12px;
    margin-bottom: 22px;
    background: #fff;
}

.input-container:focus-within {
    border-color: #168a80;
}

.input-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.input-container input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: transparent;
    color: #222;
}

/* PASSWORD */
.password-label-row {
    margin-bottom: 12px;
}

.forgot-link {
    font-size: 13px;
    color: #168a80;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover,
.register-text a:hover {
    text-decoration: underline;
}

.password-container {
    margin-bottom: 12px;
    gap: 10px;
}

/* EYE BUTTON */
.toggle-password {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 4px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #777;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.toggle-password:hover {
    color: #168a80;
    background: #f5f7f9;
}

.toggle-password:focus-visible {
    outline: 2px solid #168a80;
    outline-offset: 2px;
}

.toggle-password svg {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
    flex-shrink: 0;
}

/* STATUS MESSAGE */
.message {
    display: none;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #c62828;
    overflow-wrap: anywhere;
}

.message.visible {
    display: block;
}

/* LOGIN BUTTON */
.login-button {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 17px 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.login-button:hover {
    background: #252525;
}

.login-button:disabled,
.google-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.divider div {
    height: 1px;
    flex: 1;
    background: #e0e3e7;
}

.divider span {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* GOOGLE LOGIN */
.google-button {
    width: 100%;
    background: #f0f0f0;
    color: #252525;
    border: none;
    border-radius: 9px;
    padding: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.google-button:hover {
    background: #e7e7e7;
}

.google-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* REGISTER */
.register-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 25px 0 18px;
}

.register-text a {
    color: #168a80;
    text-decoration: none;
    font-weight: bold;
}

/* SECURITY BADGE */
.security-container {
    display: flex;
    justify-content: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f2f4;
    color: #555;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
}

.security-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    flex-shrink: 0;
}


.password-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-container input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
}

.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* MOBILE */
@media (max-width: 480px) {
    .header {
        padding: 0 4%;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .header-logo {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 18px;
        white-space: nowrap;
    }

    .back-link {
        font-size: 12px;
        white-space: nowrap;
        margin-left: 8px;
    }

    .main-content {
        padding: 88px 14px 30px;
        align-items: flex-start;
    }

    .login-card {
        width: 100%;
        max-width: 585px;
        padding: 28px 20px;
    }

    .main-logo {
        width: 75px;
        height: 75px;
    }

    h1 {
        font-size: 28px;
    }

    .description {
        font-size: 14px;
    }
}