/* Pantallas de inicio (welcome) y login: fondo agrícola y tarjeta translúcida. */
.sgt-auth {
    min-height: 100vh; margin: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 32px 16px;
    font-family: "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #fff;
    background: #16271d url("../images/campo.svg") center bottom / cover no-repeat fixed;
    position: relative;
}
.sgt-auth::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 30% 40%, rgba(22, 39, 29, .55), rgba(22, 39, 29, .15) 60%, rgba(22, 39, 29, 0) 80%);
}
.sgt-auth > * { position: relative; }

.sgt-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.sgt-brand:hover, .sgt-brand:focus { color: #fff; text-decoration: none; }
.sgt-brand-mark {
    width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7a3a3a, #4a2020); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-size: 22px;
}
.sgt-brand-name { font-size: 26px; font-weight: 800; letter-spacing: .18em; line-height: 1; }
.sgt-brand-sub { display: block; font-size: 12.5px; font-weight: 400; letter-spacing: .04em; opacity: .8; margin-top: 4px; }

/* ---------- Login ---------- */
.sgt-login-card {
    width: 100%; max-width: 420px; border-radius: 18px; padding: 30px 32px 26px;
    background: rgba(255, 255, 255, .94); color: #2b2f36;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: sgt-rise .5s ease-out;
}
@keyframes sgt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sgt-login-card .sgt-brand { color: #2b2f36; margin-bottom: 22px; }
.sgt-login-card .sgt-brand-name { font-size: 22px; color: #612d2d; }
.sgt-login-card .sgt-brand-sub { color: #7a808a; opacity: 1; }
.sgt-login-card .sgt-brand-mark { color: #fff; }
.sgt-login-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.sgt-login-lead { color: #7a808a; font-size: 13.5px; margin: 0 0 18px; }

.sgt-field { position: relative; margin-bottom: 14px; }
.sgt-field label { display: block; font-size: 12.5px; font-weight: 600; color: #4a4f57; margin-bottom: 5px; }
.sgt-field .form-control {
    height: 44px; border-radius: 10px; border: 1px solid #dfe3e8; padding: 8px 14px 8px 40px; font-size: 15px;
    box-shadow: none; transition: border-color .15s, box-shadow .15s; background: #fff;
}
.sgt-field .form-control:focus { border-color: #612d2d; box-shadow: 0 0 0 3px rgba(97, 45, 45, .15); }
.sgt-field > i { position: absolute; left: 14px; bottom: 14px; color: #9aa0a6; font-size: 15px; pointer-events: none; }
.sgt-field.has-error .form-control { border-color: #c0392b; }
.sgt-field .help-block { color: #c0392b; font-size: 12.5px; margin: 4px 0 0; }

.sgt-coords {
    background: #f7efef; border: 1px solid #e8d6d6; border-radius: 12px; padding: 12px 14px 4px; margin: 6px 0 14px;
}
.sgt-coords-label { font-size: 12.5px; color: #4a2020; margin-bottom: 8px; }
.sgt-coords-chips { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: middle; }
.sgt-coords-chips span {
    display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .03em;
    background: #612d2d; color: #fff; border-radius: 7px; padding: 2px 6px;
}
.sgt-coords .sgt-field { margin-bottom: 10px; }
.sgt-coords .form-control { letter-spacing: .3em; font-weight: 600; }

.sgt-login-row { margin: 4px 0 18px; font-size: 13px; }
.sgt-login-row label { font-weight: 400; color: #4a4f57; margin: 0; cursor: pointer; }
.sgt-login-row input { margin: 0 6px 0 0; vertical-align: -1px; accent-color: #612d2d; }
.sgt-login-row a { color: #612d2d; }

.sgt-btn {
    display: block; width: 100%; height: 46px; border: 0; border-radius: 10px; font-size: 15.5px; font-weight: 700; letter-spacing: .02em;
    color: #fff; background: linear-gradient(135deg, #7a3a3a, #612d2d 55%, #4a2020);
    box-shadow: 0 8px 20px rgba(97, 45, 45, .35); transition: transform .12s, box-shadow .12s, filter .12s;
}
.sgt-btn, .sgt-btn:focus { text-decoration: none; }
.sgt-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 24px rgba(97, 45, 45, .45); color: #fff; text-decoration: none; }
.sgt-btn:active { transform: translateY(1px); }
.sgt-btn[disabled] { opacity: .7; }

.sgt-alert { background: #fdecea; color: #a5281b; border: 1px solid #f5c6c0; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; }
.sgt-login-help { text-align: center; color: #7a808a; font-size: 12.5px; margin-top: 14px; }
.sgt-login-help i { color: #612d2d; margin-right: 4px; }
.sgt-auth-foot { text-align: center; color: #9aa0a6; font-size: 12px; margin-top: 18px; }

/* ---------- Inicio (welcome) ---------- */
.sgt-welcome { width: 100%; max-width: 1100px; display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
.sgt-welcome-hero h1, .sgt-welcome-hero p { max-width: 560px; }
.sgt-welcome-top { display: flex; justify-content: space-between; align-items: center; }
.sgt-welcome-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 620px; padding: 40px 0 120px; animation: sgt-rise .6s ease-out; }
.sgt-welcome-kicker { text-transform: uppercase; letter-spacing: .25em; font-size: 13px; font-weight: 600; color: #f3c983; margin-bottom: 14px; }
.sgt-welcome h1 { font-size: 64px; font-weight: 800; letter-spacing: .12em; margin: 0 0 10px; line-height: 1; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.sgt-welcome p { font-size: 19px; line-height: 1.5; opacity: .92; margin: 0 0 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.sgt-welcome .sgt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; padding: 0 28px; }
.sgt-welcome-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.sgt-welcome-steps span {
    font-size: 13px; padding: 5px 12px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sgt-welcome-steps i { margin-right: 6px; color: #f3c983; }
.sgt-ghost { text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; padding: 8px 16px; font-weight: 600; }
.sgt-ghost:hover, .sgt-ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }

@media (max-width: 600px) {
    .sgt-login-card { padding: 24px 20px 20px; }
    .sgt-welcome h1 { font-size: 44px; }
    .sgt-welcome p { font-size: 16px; }
}
