/* ===================================================
   LOGIN PAGE RESPONSIVE STYLES
   InternConnect
=================================================== */

/* Layout */
.main-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-container {
    width: min(95%, 600px);
    margin: 0 auto;
}

body.auth-centered-page .login-container {
    max-width: 600px;
    min-height: auto;
}

body.auth-centered-page .main-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

body.auth-centered-page .left-panel {
    display: none !important;
}

body.auth-centered-page .right-panel {
    width: 100%;
    flex: 1 1 auto;
    min-height: 450px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    justify-content: center;
    border-radius: 24px;
}

/* Branding */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-logo {
    width: clamp(50px, 10vw, 72px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.18));
}

.auth-brand-copy .brand-name {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 4px;
}

.auth-brand-copy .system-title {
    font-size: 10px;
    letter-spacing: 2px;
}

.auth-brand-copy .system-title,
.login-header p {
    text-transform: none;
}

/* Header */
.login-header {
    margin-bottom: 24px;
    text-align: center;
}

.login-header p {
    margin-bottom: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Form Fields */
.field-group {
    margin-bottom: 16px;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
    background: #f7f4ee;
    border: 1px solid #ddd7cb;
    color: #3b0000;
}

.input-wrap input::placeholder {
    color: #9a9080;
}

.input-wrap input:focus {
    background: #fffdf9;
    border-color: #cdbfa9;
    outline: none;
}

.input-wrap .i-icon {
    color: #ef4444 !important;
    z-index: 2;
}

.toggle-pw {
    cursor: pointer;
}

/* Browser Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #f7f4ee inset;
    -webkit-text-fill-color: #3b0000;
}

/* Buttons */
.btn-wrap {
    margin-top: 6px;
}

.btn-login {
    width: 100%;
    min-height: 50px;
}

/* Terms */
.terms-wrap {
    margin-top: 16px;
    margin-bottom: 14px;
}

.terms-text {
    font-size: 13px;
    line-height: 1.5;
}

.terms-text span {
    display: inline;
}

.terms-line-top {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.5);
}

.terms-line-bottom {
    display: block;
    color: #fff;
}

.terms-line-bottom a {
    color: #fca5a5;
    text-decoration: underline;
}

.terms-line-separator {
    color: rgba(255,255,255,0.5);
}

/* Footer */
.footer-wrap {
    margin-top: 8px;
}

.signup-outside {
    margin-top: 0;
    text-align: center;
    width: 100%;
    max-width: 860px;
}

.signup-outside span {
    color: #fff;
}

.signup-outside a {
    color: #fca5a5;
    text-decoration: underline;
    font-weight: 600;
}

.signup-outside a:hover {
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 991px) {
    .login-container {
        max-width: 500px;
    }

    body.auth-centered-page .right-panel {
        padding: 2rem;
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.auth-centered-page .right-panel {
        padding: 1.5rem;
    }

    .auth-logo {
        width: 58px;
    }

    .auth-brand-copy .brand-name {
        font-size: 1.25rem;
    }

    .system-title {
        letter-spacing: 1px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .main-wrapper {
        padding: 0.75rem;
    }

    body.auth-centered-page .right-panel {
        padding: 1.25rem;
    }

    .terms-text {
        font-size: 12px;
    }

    .signup-outside {
        font-size: 13px;
    }
}

/* Extra Small Phones */
@media (max-width: 375px) {
    body.auth-centered-page .right-panel {
        padding: 1rem;
    }

    .auth-brand-copy .brand-name {
        font-size: 1rem;
    }

    .auth-brand-copy .system-title {
        font-size: 8px;
    }

    .terms-text {
        font-size: 11px;
    }

    .signup-outside {
        font-size: 12px;
    }
}