﻿/* =========================
   LOGIN PAGE CSS
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    /* Soft bluish watercolor feel */
    background: linear-gradient(135deg, #e6f0f7, #dbeafe, #f0f9ff);
    /* Optional: smooth look */
    background-attachment: fixed;
}

/* CONTAINER */
.login-container {
    display: flex;
    height: 100vh;
}

/* LEFT SIDE */
.login-left {
    flex: 1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-left img {
        width: 85%;
        max-height: 90%;
        object-fit: contain;
    }

/* RIGHT SIDE */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* LOGO */
.logo {
    width: 130px;
}

/* TEXT */
.welcome-text {
    font-weight: 600;
    text-align: center;
}

.signup-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

    .signup-text a {
        color: #2563eb;
        font-weight: 500;
    }

/* SOCIAL */
.social-login {
    margin-top: 15px;
}

.social-btn {
    width: 100%;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px;
    font-size: 14px;
}

/* DIVIDER */
.divider {
    text-align: center;
    margin: 15px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* INPUT */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

/* BUTTON */
.btn-login {
    background: #1d4ed8;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
}

    .btn-login:hover {
        background: #1e40af;
    }

/* LINKS */
.forgot-link {
    font-size: 13px;
    color: #2563eb;
}

/* FOOTER */
.footer-text {
    font-size: 11px;
    color: #9ca3af;
}

/* MOBILE */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        display: none;
    }
}
/* =========================
   CUSTOM CAPTCHA
========================= */

.captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    margin-bottom: 18px;
}

    .captcha-wrapper:hover {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    }

/* LEFT */
.captcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CHECKBOX */
.captcha-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.25s ease;
}

/* CHECKED STATE */
.captcha-wrapper.active .captcha-checkbox {
    background: #2563eb;
    border-color: #2563eb;
}

    .captcha-wrapper.active .captcha-checkbox::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #fff;
        position: absolute;
        top: 2px;
        left: 5px;
        font-size: 14px;
    }

/* TEXT */
.captcha-text {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

/* RIGHT */
.captcha-brand {
    text-align: center;
    line-height: 1.2;
}

    .captcha-brand img {
        width: 32px;
        margin-bottom: 2px;
    }

    .captcha-brand div {
        font-size: 11px;
        color: #6b7280;
    }

    .captcha-brand small {
        font-size: 10px;
        color: #9ca3af;
    }

/* SPINNER */
.captcha-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: captchaSpin 0.8s linear infinite;
    display: none;
}

/* LOADING */
.captcha-wrapper.loading .captcha-checkbox {
    display: none;
}

.captcha-wrapper.loading .captcha-spinner {
    display: block;
}

/* ANIMATION */
@keyframes captchaSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}