﻿/* ===== Loader ===== */
.loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 16px solid #f3f3f3;
    border-top: 16px solid blue;
    border-right: 16px solid green;
    border-bottom: 16px solid red;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Modal ===== */
.modal-content {
    border-radius: 1rem !important;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

    .modal-content:hover {
        transform: scale(1.01);
    }

    .modal-content.rounded-4 {
        border-radius: 1rem !important;
    }

/* ===== Global Layout ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* prevents vertical scroll */
}

/* Use flex to make content stretch fully */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Full-height wrappers */
.container-scroller,
.page-body-wrapper,
.content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

/* Make forms take available height */
form#form1 {
    flex: 1; /* fills the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* center content vertically */
    padding: 0 !important;
    margin: 0;
}

/* Optional: make inner content scrollable if needed on very small screens */
.content-wrapper > * {
    overflow: auto;
}

/* ===== Header ===== */
.custom-header {
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    padding: 1rem 1.25rem;
}

/* ===== Inputs ===== */
.form-control {
    border-radius: 0.6rem;
    border: 1px solid #ced4da;
    transition: 0.2s ease-in-out;
}

    .form-control:focus {
        border-color: #4e73df;
        box-shadow: 0 0 6px rgba(78,115,223,0.4);
    }

.form-label {
    font-weight: 500;
}

/* ===== Login Input ===== */
.login-input {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #dfe4ea;
    transition: all 0.25s ease;
}

    .login-input:focus-within {
        border-color: #1e88e5;
        box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
    }

    /* Thin textbox */
    .login-input .form-control {
        border: none;
        height: 42px; /* thinner */
        font-size: 0.8rem;
        padding: 6px 10px;
        background: transparent;
    }

    /* Icon area thinner */
    .login-input .input-group-text {
        background: #f7f9fc;
        border: none;
        color: #1e88e5;
        font-size: 0.8rem;
        padding: 4px 10px;
    }

/* ===== Buttons (Global) ===== */
.btn {
    transition: 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #218838 !important;
    box-shadow: 0 4px 10px rgba(40,167,69,0.3);
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* ===== Animated Login Button ===== */
.btn-login {
    background: linear-gradient(270deg,#1e88e5,#42a5f5,#00c6ff);
    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;
    border-radius: 30px;
    padding: 12px 36px;
    font-weight: 800;
    color: #fff;
    border: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Thin & Small Action Buttons ===== */
.action-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 14px;
    min-width: 80px;
    height: 32px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 22px;
    border: none;
    color: #fff;
    white-space: nowrap;
    transition: 0.2s ease;
}

    .action-btn-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    }

    .action-btn-pill i {
        font-size: 0.8rem;
    }

/* ===== Action Button Variants ===== */
.btnlogin-pill {
    background: linear-gradient(135deg,#4e73df,#224abe);
}

.forgot-btn-pill {
    background: linear-gradient(135deg,#f6c23e,#dda20a);
}

.parent-btn-pill {
    background: linear-gradient(135deg,#1cc88a,#13855c);
}

/* ===== Enquiry Button ===== */
.btn-enquiry-blink {
    background: linear-gradient(135deg,#00c853,#64dd17);
    border-radius: 22px;
    padding: 6px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%,100% {
        box-shadow: 0 0 0 rgba(100,221,23,0.6);
    }

    50% {
        box-shadow: 0 0 12px rgba(100,221,23,0.7);
    }
}

/* ===== Page Background ===== */
.auth-img-bg {
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    position: relative;
}

    .auth-img-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(4px);
    }

/* ===== Login Card ===== */
.login-card {
    background: #ffffff;
    max-width: 380px; /* thinner */
    padding: 16px 18px; /* reduced padding */
    border-radius: 12px; /* soft rounded */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08), /* soft depth */
    0 1px 3px rgba(0,0,0,0.05);
    margin: auto;
    border: 1px solid #eef1f6; /* subtle border */
    animation: slideFade 0.6s ease;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Text ===== */
.login-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.login-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 2px;
}

.text-danger.small {
    margin-top: 2px;
    display: block;
}
/* ===== Footer ===== */
.login-half-bg {
    background: linear-gradient(135deg,#000428,#004e92);
}

    .login-half-bg p {
        font-size: 0.9rem;
        opacity: 0.85;
    }

/* ===== Gradient Buttons ===== */
.btn-gradient {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

    .btn-gradient:hover {
        background: linear-gradient(90deg, #00f2fe, #4facfe);
        transform: scale(1.05);
    }

.btn-gradient-secondary {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}

    .btn-gradient-secondary:hover {
        background: linear-gradient(90deg, #38f9d7, #43e97b);
        transform: scale(1.05);
    }

/* ===== Cards ===== */
.card.rounded-3 {
    border-radius: 1rem !important;
}

/* OTP card matches login card */
.otp-card {
    max-width: 360px; /* same as login card */
    border-radius: 1rem; /* same rounded corners */
    padding: 1rem; /* match login card padding */
}

/* Labels & Inputs */
.small-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.small-input {
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}

/* Input icon */
.small-icon {
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
}

/* Buttons same as login/parent/forgot */
.small-btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .action-btn-pill {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
}
