/* =======================================================
   Tuhafiye Portal - Login Page
   ======================================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(13,148,136,0.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(168,85,247,0.12), transparent 40%),
        #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05);
    color: #1e293b;
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.brand-icon {
    font-size: 42px;
    color: #0d9488;
    margin-bottom: 12px;
}
.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.brand-tag {
    font-size: 13px;
    color: #64748b;
}

.login-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all .15s;
}
.input-wrap input:focus {
    outline: none;
    border-color: #0d9488;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}

.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
}
.pwd-toggle:hover { color: #0d9488; }

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s;
    margin-top: 6px;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13,148,136,0.35);
}
.btn-login:active { transform: translateY(0); }

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .login-card { padding: 30px 24px; }
    .brand-icon { font-size: 36px; }
    .brand-name { font-size: 19px; }
}
