﻿/* Global */
:root {
    --primary: #0568c9;
    --primary-dark: #0052a3;
    --muted: #8b90a0;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Inter, system-ui, Arial;
}

/* Background */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url("../../img/bg-img/Qclog.png") no-repeat center center;
    background-size: cover;
    makes image cover full screen position: relative;
    background-size: 100% 100%;
}


/* Card */
.auth-card {
    width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 28px;
    box-shadow: 0 12px 30px rgba(13,20,40,0.12);
    position: relative;
    overflow: visible;
    position: absolute;
    top: 15%;
    left: 10%;
}

    /* small top accent (like your image) */
    .auth-card::before {
        content: "";
       /* position: absolute;*/
        left: 50%;
        transform: translateX(-50%);
        top: -10px;
        width: 110px;
        height: 24px;
        border-radius: 12px 12px 0 0;
        background-color: #ff0076;
        box-shadow: 0 4px 10px rgba(11,97,181,0.18);
    }

/* Brand icon */
.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid rgba(5,104,201,0.12);
    box-shadow: 0 6px 18px rgba(6,60,121,0.06);
}

/* Title / subtitle */
.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin: 0 0 6px;
}

.card-sub {
    font-size: 13px;
    color: gray;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* Form groups */
.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

/* Inputs */
.form-control {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    background: #fbfdff;
    font-size: 14px;
    color: #222;
    transition: box-shadow .15s, border-color .15s;
}

    .form-control:focus {
        outline: none;
        border-color: rgba(5,104,201,0.9);
        box-shadow: 0 6px 18px rgba(5,104,201,0.08);
    }

/* input with right icon (eye) */
.input-with-icon {
    position: relative;
}

.otp_boxes {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
}

.otp_value_box {
    width: 50px;
    border: 2px solid gray;
    font-weight: 800;
    font-size: 15px
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    cursor: pointer;
}

/* row for checkbox + forgot link */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 50%;
    height: 40px;
    border-radius: 10px;
    border: 0;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    border: 1px;
}



.button {
    width: 140px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #4e54c8, #8f94fb, #4e54c8, #4e54c8, #8f94fb, #4e54c8 );
    background-size: 250%;
    background-position: left;
    color: #fff;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-duration: 1s;
    overflow: hidden;
    margin: auto;
}

    .button::before {
        position: absolute;
        content: "SUBMIT";
        color: #ffd277;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97%;
        height: 90%;
        border-radius: 8px;
        transition-duration: 1s;
        background-color: rgba(0, 0, 0, 0.842);
        background-size: 200%;
    }

    .button:hover {
        background-position: right;
        transition-duration: 1s;
    }

        .button:hover::before {
            background-position: right;
            transition-duration: 1s;
        }

    .button:active {
        transform: scale(0.95);
    }

/* Separator */
.sep {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a7aac0;
    font-size: 13px;
    margin: 18px 0;
}

    .sep:before, .sep:after {
        content: "";
        flex: 1;
        height: 1px;
        background: #eef0f7;
    }

/* Social buttons */
.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #eef0f7;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

/* Footer small link */
.card-footer {
    text-align: center;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

    .card-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

.submit_otp_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}


@media(max-width:1024px) {
    .otp_value_box {
        width: 37px;
        border: 2px solid gray;
        font-weight: 800;
        font-size: 12px;
    }

    .auth-card {
        width: 340px;
        background: #fff;
        border-radius: 14px;
        padding: 36px 32px 28px;
        box-shadow: 0 12px 30px rgba(13, 20, 40, 0.12);
        position: relative;
        overflow: visible;
        position: absolute;
        top: 17%;
        left: 5%;
    }
}

@media(max-width:768px) {
    .otp_value_box {
        width: 37px;
        border: 2px solid gray;
        font-weight: 800;
        font-size: 12px;
    }

    .auth-card {
        width: 320px;
        background: #fff;
        border-radius: 14px;
        padding: 36px 32px 28px;
        box-shadow: 0 12px 30px rgba(13, 20, 40, 0.12);
        position: relative;
        overflow: visible;
        position: absolute;
        top: 17%;
        left: 5%;
    }
}
/* small responsive */
@media(max-width:425px) {
    .auth-card {
        width: 100%;
        padding: 26px;
        margin: auto
    }

    .otp_boxes {
        display: flex;
        gap: 3px;
        margin: auto
    }

    .otp_value_box {
        width: 50px;
        border: 2px solid gray;
        font-weight: 800;
        font-size: 15px
    }

    .body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: url("../../img/Mobile_Images/15.jpg") no-repeat center center;
        background-size: cover; /* makes image cover full screen */
        position: relative;
        background-size: 100% 100%;
    }
}

@media(max-width:320px) {
    .auth-card {
        width: 80%;
        padding: 30px;
        margin: auto
    }

    .otp_boxes {
        flex-wrap: wrap;
        gap: 10px
    }

    .otp_value_box {
        width: 50px;
        border: 2px solid gray;
        font-weight: 800;
        font-size: 12px
    }

    .body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: url("../../img/Mobile_Images/15.jpg") no-repeat center center;
        position: relative;
        background-size: 100% 100%;
    }
}
