/* ==========================================================
   LOGIN.CSS
   ========================================================== */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background:
      radial-gradient(circle at 10% 20%, rgba(100,178,50,0.10) 0%, transparent 60%),
      radial-gradient(circle at 90% 80%, rgba(229,75,36,0.10) 0%, transparent 60%),
      var(--bg-light);
}
.login-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border-top: 5px solid var(--accent-orange);
    animation: loginIn .6s ease;
}
@keyframes loginIn { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

.login-header {
    background-color: var(--primary);
    padding: 2.2rem 2rem;
    text-align: center;
    color: #fff;
}
.login-header img {
    max-height: 90px;
    width: auto;
    margin: 0 auto .8rem;
    display: block;
}
.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .5px;
}
.login-header p {
    font-size: 1rem;
    opacity: .85;
    margin-top: 4px;
}

.login-body { padding: 2rem; }

.form-group { margin-bottom: 1.2rem; position: relative; }
label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
    color: var(--primary);
}
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(100,178,50,0.20);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 34px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    padding: 8px;
}

.alert-error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.btn-submit {
    width: 100%;
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 13px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover { background: #4e9024; }
.btn-submit:active { transform: scale(.98); }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}
.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}
.login-footer a:hover { color: var(--accent-orange); }
