/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/

/* =========================================================
   VELS  eVarsity Login – Bootstrap 5 Safe Custom CSS
   Author: Marees G
   Cleaned & Optimized
   ========================================================= */

/* -------- Base -------- */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    /*  background: #ffffff; */
    background: linear-gradient(
        180deg,
        rgba(133,181,217,0.6) 0%,
        rgba(179,229,252,0.5) 50%,
        rgba(133,181,217,0.6) 100%
        );


}

.btn-outline-secondary {
    border-color: #a3a8ad;
}

.evarsity-logo {
    max-width: 100%;   /*  MOST IMPORTANT */
    height: 60px;      /* same height as first image line */
    width: auto;
    padding: 5px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

/* -------- Layout -------- */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 70px;
    margin-bottom:  70px;
}

.login-card {
    width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    padding: 50px;
}

.login-content {
    display: flex;
    gap: 40px;
}

/* -------- Left Section -------- */
.left-section {
    width: 65%;
    text-align: center;
    border-right: 1px solid #ddd;
    padding-right: 30px;
}

.logo img {
    width: 500px;
    height: 200px;
    margin-bottom: 10px;
}

.university-title {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #374184;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
}

.address {
    border-top: 2px solid #ddd;
    font-size: 11px;
    line-height: 1.6;
    color: #374184;
    padding-top: 10px;
}

/* -------- Right Section -------- */
.right-section {
    width: 35%;
}

.subtitle {
    font-family: "Monotype Corsiva", cursive;
    text-align: center;
    color: #374184;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* -------- Form -------- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

/* Bootstrap-safe input enhancement */
.form-control {
    font-size: 14px;
}

.form-control:focus {
    border-color: #374184;
    box-shadow: 0 0 0 0.15rem rgba(55, 65, 132, 0.25);
}

/* -------- Validation -------- */
.invalid-feedback {
    display: none;
    font-size: 12px;
}

/* -------- Password Field -------- */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 40px; /* space for eye icon */
}

.toggle-password {
    position: absolute;
    top: 70%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #1e2a78;
    z-index: 5;
}

.toggle-password:hover {
    color: #0d6efd;
}

/* -------- Forgot Password -------- */
.forgot-row {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-row a {
    font-size: 12px;
    color: #374184;
    text-decoration: none;
    font-weight: bold;
}

.forgot-row a:hover {
    text-decoration: underline;
}

/* -------- Buttons -------- */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-custom {
    padding: 12px 25px;
    border-radius: 6px;
    background: #4b59b4;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.btn-custom:hover {
    opacity: 0.9;
    color: #fff;
    background: #262c5a;
}

.bg-custom {
    background: #4b59b4;
    color: #fff;
}

/* -------- Footer -------- */
.card-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 11px;
    color: #374184;
}

/* =========================================================
   Mobile Fixes – Login Page (FINAL & SAFE)
   ========================================================= */

/* =========================================================
   Mobile Header Tight Layout – FINAL
   ========================================================= */

@media (max-width: 768px) {

    /* Card */
    .login-card {
        width: 92%;
        padding: 18px;
    }

    /* Stack sections tightly */
    .login-content {
        flex-direction: column;
        gap: 6px;  /* 🔽 minimal space */
    }

    /* First logo section (TOP) */
    .left-section {
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;            /* ❌ remove line */
    }

    /* First logo image */
    .logo img {
        max-width: 100%;
        height: auto;
        margin: 0 auto 4px;      /* 🔽 small gap */
        padding: 0;
        display: block;
    }

    /* Hide address completely */
    .address {
        display: none;
    }

    /* Right section */
    .right-section {
        width: 100%;
        padding: 0;
        margin-top: 0;
    }

    /* e-Varsity logo */
    .evarsity-logo {
        height: 50px;
        margin: 0 auto 4px;      /* 🔼 move up */
        padding: 0;
        display: block;
    }

    /* Reduce spacing below logo text */
    .right-section p {
        margin-bottom: 4px;
    }

    /* Reduce hr spacing */
    hr {
        margin: 6px 0;
    }
}



/* ================= OTP INPUT (OPTIONAL) ================= */
.otp-box {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.otp-box:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
    outline: none;
}

/* Disable text selection (avoid copy paste confusion) */
.otp-box {
    user-select: none;
}




