﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0a2f2c 0%, #1a5f5a 50%, #0f423f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

    /* Islamic geometric pattern overlay - subtle modern touch */
    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" opacity="0.05"><path fill="none" stroke="%23f7e6c4" stroke-width="1.5" d="M400 50L450 120L530 140L490 210L520 290L440 300L400 370L360 300L280 290L310 210L270 140L350 120L400 50Z M400 370L450 440L530 460L490 530L520 610L440 620L400 690L360 620L280 610L310 530L270 460L350 440L400 370Z"/><circle cx="400" cy="210" r="25" fill="none" stroke="%23f7e6c4" stroke-width="1"/><circle cx="400" cy="530" r="25" fill="none" stroke="%23f7e6c4" stroke-width="1"/></svg>');
        background-repeat: repeat;
        background-size: 70px;
        pointer-events: none;
    }

/* card glassmorphism + modern elegance */
.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    border-radius: 48px 32px 48px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(210, 180, 140, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 480px;
    margin: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

    .login-card:hover {
        transform: translateY(-5px);
    }

/* decorative header with dua motif */
.brand-header {
    background: linear-gradient(112deg, #154f4a 0%, #0b3b37 100%);
    padding: 1.8rem 1.5rem;
    text-align: center;
    position: relative;
}

    .brand-header::after {
        content: "";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        background: #d4af37;
        color: #154f4a;
        width: 44px;
        height: 44px;
        border-radius: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        box-shadow: 0 6px 14px rgba(0,0,0,0.2);
        border: 3px solid white;
    }

.logo-icon {
    font-size: 3.2rem;
    color: #f9e0a8;
    margin-bottom: 0.5rem;
}

.brand-header h1 {
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -0.5px;
    margin: 0;
    color: #fff8e7;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.brand-header p {
    color: #e0e7c9;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.login-form {
    padding: 2.5rem 2rem 2rem;
}

.input-group-custom {
    margin-bottom: 1.6rem;
    position: relative;
}

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #1f6e67;
        font-size: 1.2rem;
        z-index: 2;
        transition: color 0.2s;
    }

.form-control-custom {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 60px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    color: #1a2e2c;
}

    .form-control-custom:focus {
        border-color: #c7a93b;
        box-shadow: 0 0 0 4px rgba(199, 169, 59, 0.2);
        outline: none;
    }

.form-control-custom::placeholder {
    color: #a0bab6;
    font-weight: 400;
    font-size: 0.9rem;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -0.4rem;
    margin-bottom: 1rem;
}

.remember-me-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f6e67;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

    .remember-me-option input {
        width: 16px;
        height: 16px;
        accent-color: #1f6e67;
        cursor: pointer;
    }

.forget-saved-link {
    font-size: 0.8rem;
    color: #7c8f8a;
    text-decoration: none;
    border-bottom: 1px dashed #c7a93b;
    padding-bottom: 1px;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

    .forget-saved-link:hover {
        color: #d4af37;
        border-bottom-color: #1f6e67;
    }

/* forgot password link */
.forgot-link {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.8rem;
}

    .forgot-link a {
        font-size: 0.85rem;
        font-weight: 500;
        color: #1f6e67;
        text-decoration: none;
        transition: color 0.2s;
        border-bottom: 1px dashed #c7a93b;
        padding-bottom: 2px;
    }

        .forgot-link a:hover {
            color: #d4af37;
            border-bottom-color: #1f6e67;
        }

/* modern button */
.btn-login {
    background: linear-gradient(95deg, #1e6b62 0%, #124c46 100%);
    border: none;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 60px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 6px 14px rgba(18, 76, 70, 0.3);
    font-family: 'Cairo', 'Poppins', sans-serif;
}

    .btn-login:hover {
        background: linear-gradient(95deg, #178076 0%, #0d403b 100%);
        transform: scale(1.01);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

/* spiritual footer */
.spiritual-footer {
    background: #fcf9f0;
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid #e9e0cd;
    font-size: 0.7rem;
    color: #7c8f8a;
    font-weight: 500;
}

    .spiritual-footer i {
        color: #d4af37;
        margin: 0 4px;
    }

/* alert toast style (jQuery driven) */
.alert-toast {
    visibility: hidden;
    min-width: 260px;
    background-color: #2c4e48;
    color: #fff7e8;
    text-align: center;
    border-radius: 40px;
    padding: 12px 18px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    font-weight: 500;
    backdrop-filter: blur(8px);
    background: rgba(28, 65, 59, 0.95);
    border-left: 5px solid #e5bc6e;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    transition: visibility 0s, opacity 0.25s linear;
    opacity: 0;
    font-family: 'Poppins', monospace;
}

    .alert-toast.show {
        visibility: visible;
        opacity: 1;
    }

/* responsive */
@media (max-width: 560px) {
    .login-card {
        margin: 1rem;
    }

    .login-form {
        padding: 1.8rem 1.5rem 1.5rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-header h1 {
        font-size: 1.5rem;
    }
}

/* Forgot password modal styling (bootstrap + custom) */
.modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: #154f4a;
    color: white;
    border-bottom: none;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-body {
    padding: 1.8rem;
}

.btn-reset-submit {
    background: #1f6e67;
    border-radius: 40px;
    border: none;
    padding: 10px;
    font-weight: 600;
    color: white;
    transition: 0.2s;
}

    .btn-reset-submit:hover {
        background: #0d554e;
    }
