/* ELC Mobile - Custom Login & Register Styles */

body.login-page,
body.register-page {
    background-color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1F2430;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background-color: #ecebeb;
    box-sizing: border-box;
}

.login-card-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Back Button Circle - Positioned at Top Left */
.back-btn-wrapper {
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 10;
}

.back-btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #EEF2FF;
    color: #3B82F6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-btn-circle:hover {
    background-color: #E0E7FF;
    color: #2563EB;
    transform: scale(1.05);
}

/* Star Logo & Titles */
.logo-header {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.star-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 16px;
}

.app-title {
    font-size: 27px;
    font-weight: 700;
    color: #232042;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 15px;
    color: #71717A;
    margin: 0;
    font-weight: 400;
}

/* Input Group Pill Style */
.input-pill-wrapper {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

.input-pill-wrapper .form-control-pill {
    width: 100%;
    height: 54px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    font-size: 15px;
    color: #1F2937;
    padding-left: 50px;
    padding-right: 24px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.input-pill-wrapper.has-left-icon .form-control-pill {
    padding-left: 54px;
}

.input-pill-wrapper.has-right-icon .form-control-pill {
    padding-right: 50px;
}

.input-pill-wrapper .form-control-pill:focus {
    border-color: #43503B;
    box-shadow: 0 0 0 3px rgba(67, 80, 59, 0.15);
}

.input-pill-wrapper .form-control-pill::placeholder {
    color: #9CA3AF;
    font-size: 15px;
}

.input-pill-icon-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9CA3AF;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-pill-icon-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 5;
}

.input-pill-icon-right:hover {
    color: #4B5563;
}

/* Setup Face Recognition Button */
.btn-setup-face {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    border: 1.5px solid #5C82ED;
    background-color: transparent;
    color: #5C82ED;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-setup-face:hover {
    background-color: rgba(92, 130, 237, 0.08);
    border-color: #4C72DF;
    color: #4C72DF;
}

.btn-capture-face {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    background-color: #43503B;
    border: none;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-capture-face:hover {
    background-color: #78846B;
}

/* Remember Me Checkbox */
.remember-me-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 26px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    width: 19px;
    height: 19px;
    border-radius: 5px;
    border: 1.5px solid #CBD5E1;
    accent-color: #43503B;
    cursor: pointer;
    margin: 0 9px 0 0;
}

.custom-checkbox-label {
    font-size: 15px;
    color: #6B7280;
    font-weight: 400;
}

/* Primary Action Buttons (Log In & Register) */
.btn-log-in,
.btn-register-primary {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    background-color: #43503B;
    border: none;
    color: #FFFFFF;
    font-size: 16.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(67, 80, 59, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-log-in:hover,
.btn-register-primary:hover {
    background-color: #78846B;
    box-shadow: 0 8px 24px rgba(120, 132, 107, 0.4);
    transform: translateY(-1px);
}

.btn-log-in:disabled,
.btn-register-primary:disabled {
    background-color: #A3AF9B;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Face Login Section */
.face-login-section {
    margin-top: 30px;
    text-align: center;
}

.face-login-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.face-login-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.face-login-icon-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-login-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #1E1B4D;
    margin-top: 4px;
}

/* Forgot Password & Meta Links */
.forgot-password-wrap,
.register-face-wrap,
.login-meta-data {
    margin-top: 24px;
    text-align: center;
}

.forgot-password-link {
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #1F2937;
}

.register-face-text {
    font-size: 14.5px;
    color: #6B7280;
    margin: 0;
}

.register-now-btn {
    display: inline-block;
    margin-left: 5px;
    color: #43503B;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-now-btn:hover {
    color: #78846B;
    text-decoration: underline;
}

/* Video Container for Face Recognition */
#video-container {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-top: 16px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#face-video,
#video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}