/* Login Page Custom Styles */

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid #fff;
    border-top: 2.5px solid #976FEE;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.grad {
    /* Sign In */
    width:  100%;
    height: 187px;
    left: 0px;
    top: 0px;

    background: linear-gradient(179.99deg, #E0D1FF 0.53%, #FFFFFF 93.33%);
    border-radius: 0px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;

}

button{
    /* Button */

    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    /* padding: 8px; */
    gap: 8px;
    border-radius: 8px;
    font-size: 14px;
    /* padding-top: 0 !important; */
}

.btn{
    
    justify-content: center;
    align-items: center;
    /* padding: 8px; */
    border-radius: 8px;
    font-size: 14px;
    /* height: 36px; */
}

/* btn{
    padding-top: 0 !important;
    padding-bottom: .6rem !important;
} */

.btn-primary{
    background: linear-gradient(180deg, #976FEE 2.65%, #804EEC 79.54%) !important;
    box-shadow: 0px 0px 0px 1px #6C2FEC !important;
    /* width: 100%; */
    /* height: 36px; */
}

input{
    /* Input */

    box-sizing: border-box;

    /* width: 426px; */
    /* height: px; */

    background: #F6F7F9;
    border: 1px solid #CACDD6;
    border-radius: 8px;

}

.login-form-bg {
    /* Sign In */
    background: #FFFFFF !important;
    box-shadow: -2px 0px 2px #F2EDFD, 2px 0px 2px #F2EDFD, 0px 4px 4px #F0EDF7 !important;
    border-radius: 16px !important;

}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, #f3f0ff 0%, #e9e6ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 32px;
    /* border-radius: 0 32px 32px 0; */
    box-shadow: 0 8px 32px rgba(131, 108, 203, 0.08);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.login-brand img {
    height: 40px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2350;
    margin-bottom: 12px;
}

.login-subtitle {
    color: #7b7b93;
    font-size: 1rem;
    margin-bottom: 32px;
    text-align: center;
}

.stats-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-cards {
    display: flex;
    gap: 16px;
}

.stats-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(74, 152, 245, 0.08);
    padding: 18px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stats-card-title {
    font-size: 1rem;
    color: #7b7b93;
    margin-bottom: 8px;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d2350;
}

.stats-chart {
    width: 100%;
    height: 80px;
    margin-top: 8px;
    background: url('../images/svg/shape.svg') no-repeat center/cover;
    border-radius: 8px;
}

.exam-taken-chart {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(131, 108, 203, 0.08);
    padding: 24px;
    margin-top: 16px;
}

.exam-taken-title {
    font-size: 1rem;
    color: #7b7b93;
    margin-bottom: 8px;
}

.exam-taken-legend {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    color: #7b7b93;
    margin-bottom: 8px;
}

.exam-taken-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.exam-taken-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.exam-taken-legend .dot.exam {
    background: #4a98f5;
}

.exam-taken-legend .dot.taker, .bg-color-primary {
    background: #836ccb !important;
}

.exam-taken-chart-img {
    width: 100%;
    height: 120px;
    background: url('../images/svg/shape.svg') no-repeat center/cover;
    border-radius: 8px;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    /* border-radius: 32px 0 0 32px; */
    box-shadow: 0 8px 32px rgba(131, 108, 203, 0.08);
}

.login-form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 48px 32px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(74, 152, 245, 0.08);
    text-align: center;
}

.login-form-wrapper .login-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #836ccb 0%, #4a98f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

/* .login-form-wrapper .login-icon img {
    width: 32px;
    height: 32px;
} */

.login-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2350;
    margin-bottom: 8px;
}

.login-form-subtitle {
    color: #7b7b93;
    font-size: 1rem;
    margin-bottom: 24px;
}

.social-login {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    font-weight: 500;
    color: #2d2350;
    cursor: pointer;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #f3f0ff;
}

.or-divider {
    margin: 16px 0;
    color: #b0b0c3;
    font-size: 0.95rem;
    position: relative;
}

.or-divider:before, .or-divider:after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #e0e0e0;
    vertical-align: middle;
    margin: 0 8px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
    background: #fafbfc;
    color: #2d2350;
}

.login-form label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    color: #7b7b93;
    font-size: 0.98rem;
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.login-form .form-options label {
    margin-bottom: 0;
}

.login-form .forgot-link {
    color: #836ccb;
    text-decoration: none;
    font-size: 0.98rem;
}

.login-form .forgot-link:hover {
    text-decoration: underline;
}

.login-form .save-account {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-form button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(90deg, #836ccb 0%, #4a98f5 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(131, 108, 203, 0.08);
    transition: background 0.2s;
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #4a98f5 0%, #836ccb 100%);
}

.login-form .create-account {
    color: #836ccb;
    text-decoration: none;
    font-size: 1rem;
}

.login-form .create-account:hover {
    text-decoration: underline;
}

.login-form-bg {
    background: #fff;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-illustration-bg {
    background: #F2EDFD;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-illustration-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.login-illustration-img {
    max-width: 80%;
    max-height: 80vh;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
    }
    .login-left, .login-right {
        border-radius: 0;
        box-shadow: none;
    }
    .login-left, .login-right {
        flex: unset;
        width: 100%;
        min-height: 50vh;
    }
    .login-form-wrapper {
        padding: 32px 12px;
    }
    .login-form-bg, .login-illustration-bg {
        height: auto;
        min-height: unset;
        border-radius: 0;
    }
    .login-illustration-img {
        max-width: 100%;
        max-height: 40vh;
    }
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.input-group input[type="email"],
.input-group input[type="password"] {
    padding-left: 44px;
    padding-right: 44px;
    margin-bottom: 0;
    width: 100%;
    font-size: 1.15rem;
    background: #F6F7F9;
    border: 1.5px solid #CACDD6;
    border-radius: 8px;
    height: 56px;
    box-shadow: 0 1px 4px rgba(80, 80, 120, 0.04);
    transition: border 0.2s;
}
.input-group input[type="email"]:focus,
.input-group input[type="password"]:focus {
    border: 1.5px solid #976FEE;
    outline: none;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.input-group .input-eye {
    left: unset;
    right: 14px;
    cursor: pointer;
    pointer-events: auto;
}
.input-group .input-icon img {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

/* Remove default input margin for input-group */
.input-group + label {
    margin-top: 12px;
}

/* Adjust Save account and Forgot Password layout */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 2px;
}
.save-account label {
    margin-bottom: 0;
    font-size: 1rem;
    color: #23233c;
}
.forgot-link {
    font-size: 1rem;
    color: #23233c;
    text-decoration: underline;
    font-weight: 500;
}
.forgot-link:hover {
    color: #804EEC;
}

button[type="submit"]:hover {
    background: linear-gradient(180deg, #804EEC 2.65%, #976FEE 79.54%);
    box-shadow: 0px 2px 8px 0px #976FEE33;
} 