/* ---------------- Desktop ---------------- */
.auth-container {
    display:flex;
    width:96%;
    max-width:1350px;
    height:90vh;
    margin:0 auto;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 22px 55px rgba(0,0,0,0.12);
    overflow:hidden;
    align-items:center;
}

.auth-left {
    flex:1.4;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.auth-left img {
    width:auto;
    max-height:60%;
    object-fit:contain;
    animation: float 4s ease-in-out infinite;
    margin-top: 110px;
}

@keyframes float {
    0%,100% { transform: translateY(0px);}
    50% { transform: translateY(-20px);}
}

.auth-right {
    flex:1.1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:2.5rem;
}
.input-wrapper.success input {
    border-color: #24863D;
}

.input-wrapper.error input {
    border-color: #E82A3C;
}

.login-card {
    width:100%;
    max-width:520px;
    min-height:80vh;
    padding:2.5rem 3rem;
    border-radius:20px;
    background: rgba(255,255,255,0.98);
    box-shadow:0 14px 35px rgba(0,0,0,0.1);
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.login-card img {
    width:200px;
    margin:0 auto 2rem;
}

.login-card h4 {
    margin-bottom: 1.4rem;
    font-size:1.8rem;
    font-weight:700;
}

.login-desc {
    margin-bottom:4rem;
    color:#555;
    font-size:17px;
    line-height:1.5;
}

/* Input */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 60px;
    padding: 0 12px 0 45px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: left;
    direction: ltr;
    background-image: url('/auth/img/mobile-icon.svg');
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 20px 20px;
}
/* ---------------- Desktop ---------------- */
.auth-container {
    display:flex;
    width:96%;
    max-width:1350px;
    height:90vh;
    margin:0 auto;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 22px 55px rgba(0,0,0,0.12);
    overflow:hidden;
    align-items:center;
}

.auth-left {
    flex:1.4;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.auth-left img {
    width:auto;
    max-height:60%;
    object-fit:contain;
    animation: float 4s ease-in-out infinite;
    margin-top: 110px;
}

@keyframes float {
    0%,100% { transform: translateY(0px);}
    50% { transform: translateY(-20px);}
}

.auth-right {
    flex:1.1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:2.5rem;
}

.login-card {
    width:100%;
    max-width:520px;
    min-height:80vh;
    padding:2.5rem 3rem;
    border-radius:20px;
    background: rgba(255,255,255,0.98);
    box-shadow:0 14px 35px rgba(0,0,0,0.1);
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.login-card img {
    width:200px;
    margin:0 auto 2rem;
}

.login-card h4 {
    margin-bottom: 1.4rem;
    font-size:1.8rem;
    font-weight:700;
}

.login-desc {
    margin-bottom:4rem;
    color:#555;
    font-size:17px;
    line-height:1.5;
}

/* ---------------- Input + Floating Label Right ---------------- */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 12px 18px 45px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.2s;
    background-image: url('/auth/img/mobile-icon.svg');
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 20px 20px;
    line-height: 1.2;
}

.input-wrapper input:focus {
    border-color: #3f8edd;
    outline: none;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper label {
    position: absolute;
    top: 18px;
    right: 12px;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    transition: 0.2s ease all;
    text-align: right;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -8px;
    right: 12px;
    font-size: 12px;
    color: #24863D;
}

.input-wrapper.success input + label {
    color: #24863D;
}

.input-wrapper.error input + label {
    color: #E82A3C;
}
.input-wrapper label {
    color: #aaa;
}

.input-wrapper.success label {
    color: #24863D;
}

.input-wrapper.error label {
    color: #E82A3C;
}

.input-wrapper:not(.success):not(.error) input:focus + label {
    color: #3f8edd;
}
.input-wrapper.success input:focus + label {
    color: #3f8edd;
}

.input-wrapper.error input + label {
    color: #E82A3C;
}


.input-wrapper.error input + label {
    color: #E82A3C;
}

.input-wrapper input::placeholder {
    direction: rtl;
    text-align: right;
}
.input-wrapper input {
    border: 2px solid #ccc;
}
.input-wrapper input:focus {
    border-color: #3f8edd;
    outline: none;
}
.input-wrapper.error input {
    border-color:#E82A3C;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-wrapper .input-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.error-message {
    display:block;
    color:#E82A3C;
    font-size:14px;
    margin-top:20px;
    line-height:1.2;
}

/* Button */
.login-card button {
    margin-top:35px;
    width:100%;
    padding:14px;
    font-size:16px;
    border:none;
    border-radius:10px;
    background-color:#1D9D90;
    color:#fff;
    cursor:pointer;
    transition:0.3s;
}

.login-card button:hover {
    background-color:#178374;
    transform:translateY(-1px);
}

#submitBtn:disabled {
    background-color:#ccc !important;
    cursor:not-allowed !important;
}

/* ---------------- Tablet (769px - 992px) ---------------- */
@media (max-width:992px) and (min-width:769px) {
    .auth-container {
        flex-direction:row;
        height:auto;
        min-height:70vh;
        justify-content:center;
        align-items:center;
        margin:1rem auto;
        padding:0;
    }

    .auth-left img {
        max-height:45%;
        animation:none;
        margin-top:0;
    }

    .auth-right {
        width:50%;
        padding:1rem;
        display:flex;
        justify-content:center;
        align-items:center;
    }

    .login-card {
        max-width:380px;
        padding:2rem;
        margin:0 auto;
        border-radius:15px;
        box-shadow:0 10px 25px rgba(0,0,0,0.1);
        min-height:auto;
    }

    .login-card img {
        width:140px;
        margin-bottom:1rem;
    }

    .login-card h4 {
        font-size:1.6rem;
        margin-bottom:1rem;
    }

    .login-desc {
        font-size:15px;
        margin-bottom:2rem;
    }

    .input-wrapper input {
        height:50px;
        font-size:15px;
        padding:0 12px 0 40px;
    }

    .login-card button {
        padding:12px;
        font-size:15px;
        margin-top:20px;
    }
}

/* ---------------- Mobile (up to 768px) ---------------- */
@media (max-width:768px) {
    html, body {
        height:100%;
        margin:0;
        padding:0;
    }

    .auth-container {
        flex-direction:column;
        justify-content:center;
        align-items:center;
        height:100vh;
        margin:0;
        padding:0 1rem;
    }

    .auth-left {
        display:none;
    }

    .auth-right {
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
    }

    .login-card {
        width:100%;
        max-width:360px;
        padding:1.5rem;
        margin:0 auto;
        border-radius:15px;
        box-shadow:0 10px 25px rgba(0,0,0,0.1);
        min-height:auto;
    }

    .login-card img {
        width:120px;
        margin-bottom:1rem;
    }

    .login-card h4 {
        font-size:1.5rem;
        margin-bottom:0.8rem;
    }

    .login-desc {
        font-size:14px;
        margin-bottom:1.5rem;
    }

    .input-wrapper input {
        height:48px;
        font-size:14px;
        padding:0 12px 0 38px;
    }

    .login-card button {
        padding:11px;
        font-size:14px;
        margin-top:15px;
    }
}

/* ---------------- Small Mobile (up to 480px) ---------------- */
@media (max-width:480px) {
    .login-card img {
        width:100px;
        margin-bottom:0.8rem;
    }

    .login-card h4 {
        font-size:1.4rem;
    }

    .login-card .login-desc {
        font-size:13px;
        margin-bottom:1rem;
    }

    .input-wrapper input {
        height:45px;
        font-size:13px;
        padding:0 10px 0 35px;
    }

    .login-card button {
        padding:10px;
        font-size:13px;
        margin-top:12px;
    }
}


.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.input-wrapper input {
    width: 100%;
    height: 60px;
    padding: 0 12px 0 45px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    align-items: center;
    background-image: url('/auth/img/mobile-icon.svg');
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 20px 20px;
    transition: all 0.2s;
}

/* Label floating */
.input-wrapper label {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    transition: 0.2s ease all;
    text-align: right;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #24863D;
    transform: none;
}

@media (max-width:992px) and (min-width:769px) {
    .input-wrapper input { height: 50px; }
}

@media (max-width:768px) {
    .input-wrapper input { height: 48px; }
}

@media (max-width:480px) {
    .input-wrapper input { height: 45px; }
}
.input-wrapper.error input:focus + label,
.input-wrapper.error input:not(:placeholder-shown) + label {
    color: #E82A3C !important;
}

.form-footer {
    margin-top: 35px;
    display: flex;
    justify-content: flex-end;
}

.link-info {
    font-size: 17px;
    color: #3F8EDD;
    text-decoration: none;
}

.link-info:hover {
    color: #6A5CFF;
}


