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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ef6536;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90%;
}

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

.logo img {
    height: 80px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #ef6536;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #ef6536;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.default-credentials {
    margin-top: 20px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.default-credentials p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.default-credentials strong {
    color: #333;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ef6536;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 25px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo p {
        font-size: 13px;
    }

    .logo img {
        height: 60px;
    }

    .form-group input {
        padding: 10px;
    }

    .btn-login {
        padding: 10px;
    }

    .default-credentials {
        padding: 12px;
    }

    .default-credentials p {
        font-size: 11px;
    }
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #ef6536;
}
