* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    margin: 0;
    height: 100vh;
    /* Updated Path: Jump up one level, then into Img */
    background: url("../Img/background.png") center/cover no-repeat;
    display: flex;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}
/* CONTAINER */
.container {
    width: 900px;
    height: 500px;
    display: flex;
    background: #e5e5e5;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
/* LEFT PANEL */
.left-panel {
    width: 45%;
    background: url("../Img/background.png") center/cover no-repeat;
}

.overlay {
    background: rgba(120, 0, 0, 0.85);
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
}
.logo {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-bottom: -50px;
}
.logo-text {
    color: white;
    margin-bottom: 30px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.15;
    text-align: center;
    max-width: 280px;
}
/* RIGHT PANEL */
.right-panel {
    width: 55%;
    padding: 60px;
    background: #e6e6e6;
}
.right-panel h1 {
    margin-bottom: 5px;
    text-align: center;
    font-size: 45px;
}
.subtitle {
    margin-bottom: 30px;
    color: #555;
    font-size: 14px;
}
p {
    margin: 5px;
    margin-bottom: 25px;
    color: #444;
    text-align: center;
}
.input-group {
    margin-top: 5px;
    position: relative;
    display: flex;
    align-items: center;
}
.input-group input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 30px;
    border: 1px solid #ccc;
    background: #7a0b0b;
    color: white;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}
.input-group img {
    position: absolute;
    left: 12px;
    width: 18px;
}
label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%; 
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}
/* Keyboard focus */
.toggle-password:focus-visible {
    outline: 1px solid #7a0b0b;
    border-radius: 50%;
}
.forgot {
    font-size: 13px;
    display:block;
    text-align: right;
    margin-top: 5px;
}
.btn-container {
    display: flex;
    justify-content: center;
}
.login-btn {
    margin-top: 25px;
    width: 200px;
    padding: 10px;
    background: #7a0b0b;
    color: rgb(255, 255, 255);
    border-radius: 30px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    display: block;
}
.login-btn:hover {
    background:rgb(161, 32, 32);
}
.right a { 
    color: #003cff;
}
form {
    border-color: #7a1414;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}  
.register-btn {
    grid-column: span 2;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #7a1414;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
    transition: 0.2s;
}
    
.register-btn.enabled {
    cursor: pointer;
    opacity: 1;
}
    
.register-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* FORGOT PASSWORD PAGE */
#forgotForm {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

#forgotForm label {
    display: block;
    margin-left: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

#forgotForm input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: gray;
    font-size: 16px;
    outline: none;
    text-align: center;
    margin-bottom: 18px;
}

#forgotForm input::placeholder {
    color: gray;
}

.main-btn {
    margin: 10px auto 0;
    width: 200px;
    padding: 10px;
    background: #7a0b0b;
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    display: block;
    transition: 0.3s;
}

.main-btn:hover {
    background: rgb(161, 32, 32);
}

@media (max-width: 900px) {
    body {
        min-height: 100vh;
        height: auto;
        padding: 20px 14px;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 100%;
        max-width: 560px;
        height: auto;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .left-panel {
        height: 210px;
    }

    .overlay {
        padding: 20px 16px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .logo {
        width: 145px;
        margin-bottom: -10px;
    }

    .logo-text {
        max-width: 260px;
        font-size: 13px;
        line-height: 1.25;
        margin-bottom: 0;
    }

    .right-panel {
        padding: 32px 24px 28px;
    }

    .right-panel h1 {
        font-size: 32px;
        margin: 0 0 8px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        text-align: center;
    }

    form,
    #forgotForm {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .input-group {
        width: 100%;
        margin-top: 0;
        margin-bottom: 14px;
    }

    .input-group input {
        font-size: 16px;
        padding: 12px 44px 12px 44px;
    }

    .input-group img {
        left: 14px;
        width: 16px;
    }

    .toggle-password,
    .toggle-eye {
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
    }

    .forgot {
        display: block;
        width: 100%;
        text-align: right;
        margin-top: 4px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    .btn-container {
        width: 100%;
    }

    .login-btn,
    .main-btn {
        width: 100%;
        max-width: 100%;
        margin: 18px auto 0;
        padding: 12px;
        font-size: 17px;
    }

    p {
        margin: 14px 0 0;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body {
        min-height: 100vh;
        height: auto;
        padding: 12px 10px;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .left-panel {
        height: 180px;
    }

    .overlay {
        padding: 18px 14px;
    }

    .logo {
        width: 120px;
        margin-bottom: -6px;
    }

    .logo-text {
        max-width: 220px;
        font-size: 11px;
        line-height: 1.25;
        letter-spacing: 0.5px;
        margin-bottom: 0;
    }

    .right-panel {
        padding: 26px 18px 24px;
    }

    .right-panel h1 {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-group input {
        font-size: 15px;
        padding: 12px 40px 12px 40px;
    }

    .forgot {
        font-size: 12px;
        margin-top: 4px;
        margin-bottom: 12px;
    }

    .login-btn,
    .main-btn {
        font-size: 16px;
        padding: 12px;
        margin-top: 16px;
    }

    p {
        font-size: 12px;
        margin-top: 12px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 10px 8px;
    }

    .container {
        width: 100%;
    }

    .left-panel {
        height: 160px;
    }

    .overlay {
        padding: 16px 12px;
    }

    .logo {
        width: 105px;
        margin-bottom: -2px;
    }

    .logo-text {
        max-width: 190px;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 0.4px;
    }

    .right-panel {
        padding: 22px 14px 20px;
    }

    .right-panel h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .input-group input {
        font-size: 14px;
        padding: 11px 38px 11px 38px;
    }

    .forgot {
        font-size: 11px;
    }

    .login-btn,
    .main-btn {
        font-size: 15px;
        padding: 11px;
    }

    p {
        font-size: 12px;
        line-height: 1.35;
    }
}