/* 
    Consolidated from Login, Forgot, and Reset styles
*/

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #bbf7d0, transparent 45%),
        radial-gradient(circle at bottom right, #fde68a, transparent 45%),
        linear-gradient(135deg, #ecfdf5, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.login-card {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .15),
        inset 0 1px 0 rgba(255, 255, 255, .6);
    max-width: 430px;
    width: 100%;
    padding: 2rem;
    animation: fadeUp .7s ease;
    position: relative;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.ornament {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #16a34a, #14532d);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .6);
    white-space: nowrap;
    z-index: 10;
}

.logo-pesantren {
    width: 130px;
    height: 130px;
    border-radius: 100%;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(171, 223, 190, 0.6);
    margin: 5px auto 10px;
    overflow: hidden;
}

.logo-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: brightness(1.15) contrast(1.05);
}

.logo-text {
    color: #facc15;
    font-weight: bold;
    letter-spacing: 1px;
}


.subtitle {
    font-size: 13px;
    color: #4b5563;
}

.quote {
    font-size: 12px;
    color: #6b7280;
    margin-top: 18px;
    text-align: center;
    font-style: italic;
}

.form-control {
    border: 1px solid #dee2e6; 
    border-radius: 14px;
    padding: 12px 14px;
    transition: all .25s ease;
}

.form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 .25rem rgba(22, 163, 74, .18);
    outline: none;
}

.input-group {
    border: 1px solid #dee2e6; 
    border-radius: 14px;
    transition: all .25s ease;
    background-color: #fff;
    overflow: hidden; 
}

.input-group .form-control, 
.input-group .input-group-text {
    border: none !important; 
    box-shadow: none !important;
    background: transparent !important;
}

.input-group:focus-within {
    border-color: #16a34a; 
    box-shadow: 0 0 0 .25rem rgba(22, 163, 74, .18);
}

.input-group-text {
    padding-right: 18px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    cursor: pointer; 
    transition: color 0.2s ease;
}

.input-group-text:hover {
    color: #16a34a;
}

.btn-login {
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    box-shadow: 0 12px 25px rgba(22, 163, 74, .55);
    transition: all .25s ease;
    color: white !important;
    font-weight: bold;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(22, 163, 74, .75);
}

.forgot-password-link, .back-link {
    font-size: 12px;
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.forgot-password-link:hover, .back-link:hover {
    color: #14532d;
    transform: translateX(-3px);
}

.forgot-password-link::after, .back-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: #facc15;
    transition: width 0.3s ease;
}

.forgot-password-link:hover::after, .back-link:hover::after {
    width: 100%;
    left: 0;
}

.alert-custom {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
    border-radius: 12px;
    animation: fadeSlide .4s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-6px);
    transition: all .4s ease;
}

.btn-login.loading {
    pointer-events: none;
    opacity: .85;
    position: relative;
}

.btn-login.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    animation: authSpin .8s linear infinite;
}

@keyframes authSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.login-card.submitting {
    transform: scale(.992);
    transition: transform .25s ease;
}