﻿
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 15px;
    background: url('../imgs/Background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: fadeIn .4s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header h2 {
        margin: 0;
        color: #203a43;
    }

.step-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

    .step.active {
        background: #2c5364;
    }

.step-line {
    width: 40px;
    height: 2px;
    background: #ccc;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: all .4s ease;
}

    .step.active {
        background: #2c5364;
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(44,83,100,.6);
    }

    .step.completed {
        background: #4CAF50;
        position: relative;
    }


.final-success {
    text-align: center;
    padding: 25px 10px;
    animation: fadeIn .5s ease;
}

.success-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 15px;
    background: #4CAF50;
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(76,175,80,.6);
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-weight: 500;
        display: block;
        margin-bottom: 6px;
    }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

    .form-control:focus {
        border-color: #2c5364;
        outline: none;
        box-shadow: 0 0 6px rgba(44,83,100,.3);
    }

.primary-btn {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}


.refresh-btn:focus {
    outline: 2px solid #2c5364;
    outline-offset: 3px;
    border-radius: 6px;
}


.primary-btn:focus {
    outline: 3px solid #2c5364;
    outline-offset: 3px;
    box-shadow: 0 0 8px rgba(44,83,100,0.6);
}


.refresh-btn:focus-visible,
.primary-btn:focus-visible {
    outline: 3px solid #2c5364;
}


.green {
    background: #2c5364;
    color: white;
}

    .green:hover {
        background: #203a43;
        color: white;
    }

.captcha-box {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.captcha-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.captcha-img {
    width: 200px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.captcha-img {
    outline: none;
}

    .captcha-img:focus {
        outline: 2px solid #2a5298;
    }

.refresh-btn {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .refresh-btn:hover {
        transform: rotate(90deg) scale(1.1);
    }

.password-policy {
    background: #fff4f4;
    border: 1px solid #ffcaca;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 13px;
}

.success-msg {
    margin-top: 15px;
    color: green;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*for Change Password*/

.cp-secure-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    padding: 40px 0;
}

.cp-outer-fieldset {
    width: 800px;
    margin: auto;
    border: 2px solid #1e40af;
    border-radius: 16px;
    padding: 30px;
}

    .cp-outer-fieldset legend {
        font-size: 20px;
        font-weight: 600;
        color: #1e40af;
        padding: 0 12px;
    }

.cp-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1e3a8a;
}

.cp-policy-fieldset {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    background: #f8fafc;
}

    .cp-policy-fieldset legend {
        font-weight: 600;
        color: #1e40af;
    }

.cp-field {
    transition: all 0.25s ease;
    padding: 6px;
    border-radius: 10px;
}


    /* When any input inside field is focused */
    .cp-field:focus-within {
        background: #f0f7ff;
        box-shadow: 0 0 12px rgba(37,99,235,0.25);
    }

    /* Stronger effect for password fields */
    .cp-field.password-focus:focus-within {
        background: #eef6ff;
    }

.cp-input-wrapper {
    position: relative;
}

    .cp-input-wrapper input,
    .cp-input-wrapper select {
        width: 95%;
        padding: 10px 12px 10px 38px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
        transition: 0.3s;
    }

        .cp-input-wrapper input:focus,
        .cp-input-wrapper select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 6px rgba(37,99,235,0.2);
            outline: none;
        }

    .cp-input-wrapper i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #2563eb;
    }

/* Strength Bar */
.cp-strength-bar-bg {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.cp-strength-bar-fill {
    height: 8px;
    width: 0%;
    background: red;
    transition: all 0.4s ease;
}

#password_strength {
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

.cp-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.cp-success {
    text-align: center;
    font-size: 18px;
    color: #15803d;
    padding: 40px 0;
}

/* Remove default ugly outline */
.cp-input-wrapper input:focus,
.cp-input-wrapper select:focus,
.cp-btn:focus,
#captchaImage:focus,
#refreshCaptchaBtn:focus {
    outline: none;
}

/* Input Focus */
.cp-input-wrapper input:focus,
.cp-input-wrapper select:focus {
    border: 2px solid #2563eb;
    box-shadow: 0 0 8px rgba(37,99,235,0.4);
    background-color: #f0f7ff;
}

/* Submit Button Focus */
.cp-btn:focus {
    border: 2px solid #1e40af;
    box-shadow: 0 0 10px rgba(30,64,175,0.5);
    transform: scale(1.02);
}

/* Captcha Image Focus */
#captchaImage {
    border-radius: 6px;
}

    #captchaImage:focus {
        border: 2px solid #2563eb;
        box-shadow: 0 0 8px rgba(37,99,235,0.5);
    }

/* Refresh Button Focus */
#refreshCaptchaBtn:focus {
    border: 2px solid #2563eb !important;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(37,99,235,0.5);
}

/* Accessibility improvement */
.cp-input-wrapper input,
.cp-btn,
#captchaImage,
#refreshCaptchaBtn {
    transition: all 0.2s ease;
}

/* Caps Lock Warning */
.caps-warning {
    display: block;
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

/* ===============================
   Center Captcha Section
   =============================== */

.cp-captcha-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.cp-captcha-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

    .cp-captcha-row img {
        border-radius: 6px;
    }

.refresh-btn {
    cursor: pointer;
}

.cp-userinfo {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}

.cp-username {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1e3a8a;
}

.cp-userid-label {
    font-weight: 500;
    color: #555;
}

.cp-userid {
    font-weight: 600;
    color: #2563eb;
}

/* ===============================
   Top Action Container
=================================*/
.cp-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* ===============================
   Reset Button Styling
=================================*/
.cp-reset-btn {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    /* Hover Effect */
    .cp-reset-btn:hover {
        background: #2563eb;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }

    /* Click Effect */
    .cp-reset-btn:active {
        transform: scale(0.97);
    }

    /* Focus Accessibility */
    .cp-reset-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    }