﻿/* 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;
    overflow: hidden
}

/* Background */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url("../../img/core-img/register.png") no-repeat center center;
    background-size: cover; /* makes image cover full screen */
    overflow: hidden
}

.content-wrapper {
    margin: 25px auto 0 auto; /* Top margin increased */
}

/* Popup container */
.my-swal-popup {
    background: rgba(255, 255, 255, 0.85); /* semi-transparent */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px); /* glass effect inside box */
    font-family: Arial, sans-serif;
}

/* Title text */
.my-swal-title {
    color: red; /* Brand green */
    font-size: 1.4rem !important;
    margin-bottom: 15px;
    font-weight: 500 !important;
}

/* Confirm button */
.my-swal-button {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-size: 14px;
    transition: 0.3s;
}

    .my-swal-button:hover {
        background-color: #218838 !important; /* Darker green on hover */
    }

.my-swal-success {
    background: #d4edda !important;
    color: #155724 !important;
}

.my-swal-error {
    background: #f8d7da !important;
    color: #721c24 !important;
}

.my-swal-warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

.my-swal-success-text {
    color: #28a745 !important; /* Bootstrap success green */
    font-size: 1.4rem !important;
    margin-bottom: 15px;
}

/* Blur the background content */
.content-body.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Prevent body scroll when popup visible */
body.no-scroll {
    overflow: hidden;
}

/* Alert popup (on top) */
.alert {
    position: fixed; /* above everything */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    font-size: 1.4rem !important;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    opacity: 0;
    background: #fff;
    animation: popupFadeIn 0.6s ease forwards;
}

/* Popup animations */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -48%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

.alert.hide {
    animation: popupFadeOut 0.45s ease forwards;
}

/* OK button style */
#alertOkBtn {
    margin-top: 12px;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

    #alertOkBtn:hover {
        filter: brightness(0.92);
    }

/* Fullscreen overlay to block clicks */
#alertOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* dim effect */
    z-index: 9998; /* just below the popup */
    display: none; /* hidden by default */
}


/* 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;
    margin: auto
}

    /* 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: var(--muted);
    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: 13px;
        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: 1px dashed grey;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    border: 1px;
    width: 140px;
    height: 100%;
}



.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;
    }

.alert {
    margin-bottom: 1rem;
}

.submit_otp_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px
}
/* small responsive */
@media(max-width:460px) {
    .auth-card {
        width: 100%;
        padding: 26px;
    }
}

@media(max-width:375px) {
    .auth-card {
        width: 100%;
        padding: 26px;
    }
}

@media(max-width:320px) {
    .auth-card {
        width: 90%;
        padding: 2rem;
        margin: auto
    }

    .otp_boxes {
        flex-wrap: wrap;
        gap: 10px
    }

    .otp_value_box {
        width: 50px;
        border: 2px solid gray;
        font-weight: 800;
        font-size: 12px
    }

    .form-control input {
        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-group {
        margin-bottom: 5px;
    }

    .card-sub {
        font-size: 13px;
        color: var(--muted);
        text-align: center;
        margin-bottom: 5px;
    }
}
