﻿/* ====== BRAND VARIABLES ====== */
:root {
    --primary-color: #70da70;
    --secondary-color: #2f473f;
    --primary-hover: rgb(103, 214, 103);
    --link-color: #3d6ed8;
    --link-hover: rgba(61, 110, 216, 0.8);
    --input-border: #ddd;
    --focus-ring: rgba(31, 31, 33, 0.1);
    --background-color: #ffffff;
    --text-color: #333;
    --placeholder-color: #b9b9b9;
    --muted-text: #a5a5a5;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background: var(--background-color);
}

.container {
    display: grid;
    grid-template-columns: 40% 60%;
    width: 100%;
    background: var(--background-color);
}

/* ===== Left Section ===== */
.left {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15%;
    background-color: rgba(177, 215, 196, 0.21);
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Right Section (Login Form) ===== */
.right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-box,
.otp-box {
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
}

    .logo,
    .otp-box .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
    }

        .logo img,
        .otp-box .logo img {
            height: 45px;
            object-fit: contain;
        }

    .login-box h1 {
        color: var(--secondary-color);
        font-size: 1.8rem;
        font-weight: 400;
        margin-bottom: 5px;
    }

    .login-box p {
        color: var(--muted-text);
        font-size: 0.95rem;
        font-weight: 100;
        margin-bottom: 20px;
    }

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

    .input-group label {
        font-size: 13px;
        font-weight: 400;
        color: var(--secondary-color);
        margin-bottom: 5px;
    }

    .input-group input {
        padding: 12px;
        border: 1px solid var(--input-border);
        border-radius: 8px;
        font-size: 0.95rem;
        outline: none;
        transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    }

        .input-group input::placeholder {
            color: var(--placeholder-color);
            font-weight: 300;
        }

        .input-group input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px var(--focus-ring);
            transform: scale(1.01);
        }

.btn,
.otp-box .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.87rem;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

    .btn:hover,
    .otp-box .btn:hover {
        background: var(--primary-hover);
    }

    .btn:active,
    .otp-box .btn:active {
        transform: scale(0.98);
    }

.links {
    margin-top: 30px;
    text-align: center;
}

    .links p {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .links a {
        font-size: 0.85rem;
        color: var(--secondary-color);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .links a.disabled {
            pointer-events: none;
            color: rgb(173, 173, 173);
            text-decoration: none;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .links a:hover {
            text-decoration: underline;
        }

/* ===== OTP Specific Styles ===== */
.otp-box h1 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.otp-box p {
    color: var(--muted-text);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 100;
    margin-bottom: 30px;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.otp-inputs input {
    width: 65px;
    height: 65px;
    font-size: 1.75rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    background: #fff;
    color: var(--secondary-color);
    caret-color: var(--secondary-color);
}

.otp-inputs input:focus,
.otp-inputs input.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--focus-ring);
    transform: scale(1.05);
}

/* OTP Message */
.otp-message {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 300;
    display: none;
}

.otp-message.error {
    color: #f38080;
}

.otp-message.success {
    color: #16a34a;
}

/* Resend + Timer */
.resend-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.timer-pill {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted-text);
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 10px;
    border-radius: 999px;
    min-width: 62px;
    text-align: center;
    margin-bottom: 10px;
}

.session-note {
    font-size: 0.8rem;
    font-weight: 400;
    color: #c3c3c3;
    text-align: center;
    margin-top: 4px;
}

/*
.countdown-bar {
  height: 6px;
  width: 100%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin: 10px auto 0;
}

.countdown-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(61, 110, 216, 1),
    rgba(94, 165, 255, 1)
  );
  transition: width 0.25s linear;
}
*/

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .left {
        display: none;
    }
}
