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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-content {
    background-color: white;
    border-radius: 0;
    padding: 40px 30px;
    box-shadow: none;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 330px;
    height: auto;
}

.login-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.auth-feedback {
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid transparent;
}

.auth-feedback ul {
    margin: 0;
    padding-left: 18px;
}

.auth-feedback li {
    margin-bottom: 4px;
}

.auth-feedback li:last-child {
    margin-bottom: 0;
}

.auth-feedback-error {
    background: #fdebec;
    border-color: #f5c6cb;
    color: #8f1f2d;
}

.auth-feedback-success {
    background: #e8f7ef;
    border-color: #b8e4cc;
    color: #1d5f3b;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: #5BA092;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 66px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #5BA092;
    background-color: white;
}

.form-input::placeholder {
    color: #999;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 5px;
    padding-right: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #5BA092;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #5BA092;
    border-color: #5BA092;
}

.remember-me-text {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
}

.forgot-password-link {
    color: #5BA092;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.forgot-password-link {
    color: #5BA092;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Mantido para compatibilidade */
.forgot-password {
    text-align: right;
    margin-top: 4px;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #5BA092;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 50px;
    background-color: #5BA092;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 3rem;
}

.login-button:hover {
    background-color: #4a8f81;
}

.login-button:active {
    transform: scale(0.98);
}

.register-link {
    text-align: center;
    margin-top: 30px;
}

.register-link p {
    color: #666;
    font-size: 14px;
}

.register-link a {
    color: #5BA092;
    text-decoration: none;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

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

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.password-toggle-btn.visible {
    display: flex;
}

.password-toggle-btn:hover {
    opacity: 0.7;
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.password-toggle-btn svg path {
    stroke: #666;
}

/* ============================================
   DESKTOP STYLES (1025px+)
   ============================================ */
@media (min-width: 1025px) {
    .login-container {
        max-width: 100%;
        padding: 0;
    }

    .login-content {
        padding: 56px 48px;
        border-radius: 0;
        box-shadow: none;
        max-width: 500px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .login-logo {
        width: 377px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-input {
        height: 50px;
        padding: 0 20px 0 76px;
        font-size: 17px;
        border-radius: 12px;
    }

    .input-icon {
        width: 50px;
        height: 50px;
    }

    .login-options {
        margin-top: 4px;
        margin-bottom: 32px;
    }

    .remember-me-text {
        font-size: 15px;
    }

    .forgot-password-link {
        font-size: 15px;
    }

    .remember-me input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .login-button {
        height: 56px;
        font-size: 18px;
        border-radius: 28px;
    }

    .register-link {
        margin-top: 40px;
    }

    .register-link p {
        font-size: 15px;
    }
}

/* ============================================
   TABLET (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        max-width: 100%;
        padding: 0;
    }

    .login-content {
        padding: 48px 40px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 30px 20px;
    }
    
    .login-logo {
        width: 283px;
    }
    
    .login-title {
        font-size: 18px;
    }
}
