/* JODI DRILLING SERVICE - Auth Styles */

/* Base layout ---------------------------------------------------------------- */
body[data-path="login"],
body[data-path="update-password"] {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: #ffffff;
    color: #16181d;
}

body[data-path="login"] .page-container,
body[data-path="update-password"] .page-container,
body[data-path="login"] .page-content-wrapper,
body[data-path="update-password"] .page-content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    width: 100vw !important;
    max-width: 100vw !important;
}

body[data-path="login"] section[class^="for-"],
body[data-path="update-password"] section[class^="for-"] {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    padding: clamp(2.5rem, 8vw, 4rem) 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    background: #ffffff;
}

body[data-path="login"] section[class^="for-"] > .page-card-head,
body[data-path="update-password"] section[class^="for-"] > .page-card-head {
    display: none !important;
}

/* Branding block ------------------------------------------------------------- */
body[data-path="login"] .jds-login-branding,
body[data-path="update-password"] .jds-login-branding {
    text-align: center;
    width: min(100%, 320px);
}

body[data-path="login"] .jds-login-branding img,
body[data-path="update-password"] .jds-login-branding img {
    display: block;
    width: min(100%, 220px);
    margin: 0 auto 1.75rem;
    height: auto;
}

body[data-path="login"] .jds-login-branding .subtitle ,
body[data-path="update-password"] .jds-login-branding .subtitle {
    font-size: 0.95rem;
    color: #5f6b7c;
    line-height: 1.45;
}

/* Form card ------------------------------------------------------------------ */
body[data-path="login"] section[class^="for-"] .login-content,
body[data-path="login"] section[class^="for-"] .page-card,
body[data-path="update-password"] section[class^="for-"] .page-card {
    width: min(100%, 420px);
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px;
    padding: clamp(1.75rem, 4.5vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-height: calc(100vh - clamp(6rem, 15vw, 8rem));
    overflow-y: auto;
    text-align: center;
}

body[data-path="login"] section[class^="for-"] .page-card-body,
body[data-path="login"] section[class^="for-"] .page-card-actions {
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    width: 100%;
}

body[data-path="login"] section[class^="for-"] .page-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

body[data-path="login"] section[class^="for-"] .page-card-body form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

body[data-path="login"] section[class^="for-"] .page-card-body form > * {
    width: 100%;
}

body[data-path="login"] section[class^="for-"] .page-card-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

body[data-path="login"] section[class^="for-"] .page-card-actions .btn,
body[data-path="login"] section[class^="for-"] .page-card-actions button {
    width: min(100%, 260px);
}

body[data-path="login"] section[class^="for-"] form {
    width: 100%;
}

body[data-path="login"] .forgot-password-message {
    text-align: center;
    margin-top: 0.5rem;
}

body[data-path="login"] .sign-up-message {
    text-align: center;
    margin-top: 1.5rem;
    color: #5f6b7c;
}

body[data-path="login"] .login-content .logo-image-container,
body[data-path="login"] .login-divider {
    display: none !important;
}

/* Inputs & buttons ----------------------------------------------------------- */
body[data-path="login"] section[class^="for-"] .email-field,
body[data-path="login"] section[class^="for-"] .password-field {
    position: relative !important;
}

body[data-path="login"] section[class^="for-"] .field-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    color: #99a3b3;
}

body[data-path="login"] section[class^="for-"] .form-forgot .field-icon {
	top: 40% !important;
}

body[data-path="login"] section[class^="for-"] input,
body[data-path="update-password"] section[class^="for-"] input {
    border: 1px solid #e0e5ec !important;
    padding: 0.625rem 1rem 0.625rem 3rem !important;
    font-size: 1rem !important;
    height: 2.85rem !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    width: 100% !important;
    border-radius: 5px !important;
    background: #1a1d29 !important;
	color: #f1ecec !important;
}

body[data-path="login"] section[class^="for-"] .toggle-password {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    z-index: 2 !important;
    color: #5f6b7c;
}

body[data-path="login"] section[class^="for-"] .form-label {
    color: #2c3241;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

body[data-path="login"] .btn-primary,
body[data-path="login"] .login-content .btn-primary,
body[data-path="login"] .btn-login,
body[data-path="update-password"] .btn-primary {
    background-color: #ec1c24 !important;
    border-color: #ec1c24 !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-path="login"] .btn-primary:hover,
body[data-path="login"] .login-content .btn-primary:hover,
body[data-path="login"] .btn-login:hover {
    background-color: #c41219 !important;
    border-color: #c41219 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(236, 28, 36, 0.35) !important;
}

body[data-path="login"] section[class^="for-"] a,
body[data-path="login"] .login-content a {
    color: #ec1c24;
    text-decoration: none;
    font-weight: 500;
}

body[data-path="login"] section[class^="for-"] a:hover,
body[data-path="login"] .login-content a:hover {
    color: #c41219;
    text-decoration: underline;
}

body[data-path="update-password"] .jds-login-branding,
body[data-path="update-password"] .jds-login-branding img {
	margin-bottom: 15px !important;
}

body[data-path="update-password"] .jds-login-branding {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-direction: column !important;
}

body[data-path="update-password"] .jds-login-branding img {
	width: 200px !important;
}

/* body[data-path="update-password"] .jds-login-branding .subtitle {
	font-size: 14px !important;
} */

/* Responsive adjustments ----------------------------------------------------- */
@media (max-width: 576px) {
    body[data-path="login"] section[class^="for-"] {
        padding: 2rem 1.25rem 1.5rem;
    }

    body[data-path="login"] section[class^="for-"] .login-content,
    body[data-path="login"] section[class^="for-"] .page-card {
        width: 100%;
        padding: 1.5rem 1.25rem !important;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        max-height: none;
        overflow: visible;
    }

    body[data-path="login"] .jds-login-branding img {
        width: min(100%, 180px);
        margin-bottom: 1.25rem;
    }

    body[data-path="login"] .jds-login-branding .subtitle {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    body[data-path="login"],
	body[data-path="update-password"] {
        overflow: hidden !important;
    }

    body[data-path="login"] section[class^="for-"],
	body[data-path="update-password"] section[class^="for-"] {
        flex-direction: row !important;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 !important;
        gap: 0;
        height: 100vh !important;
        min-height: unset;
    }

    body[data-path="login"] section[class^="for-"]::before,
	body[data-path="update-password"] section[class^="for-"]::before {
        content: "" !important;
        display: block !important;
        flex: 0 0 70% !important;
        max-width: 70% !important;
        height: 100vh !important;
        align-self: stretch !important;
        /* background: linear-gradient(135deg, rgba(236, 28, 36, 0.9) 0%, rgba(0, 0, 0, 0.85) 100%),
                    url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=1600&q=80') center/cover !important; */
		 background: linear-gradient(135deg, rgba(236, 28, 36, 0.9) 0%, rgba(0, 0, 0, 0.85) 100%),
                    url('/assets/jds_erp/images/JDS-Cover.jpg') center/cover !important;
        background-blend-mode: multiply !important;
        position: relative !important;
    }

    body[data-path="login"] section[class^="for-"] .login-content,
	body[data-path="update-password"] section[class^="for-"] .login-content,
    body[data-path="login"] section[class^="for-"] .page-card,
	body[data-path="update-password"] section[class^="for-"] .page-card {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        height: 100vh !important;
        border-radius: 0;
        box-shadow: none;
        padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3.5rem) !important;
        gap: 2rem;
        max-height: none;
        overflow: hidden;
        margin-left: auto;
        justify-content: center;
    }

    body[data-path="login"] .jds-login-branding {
        margin-bottom: 1rem;
    }

	body[data-path="login"] .form-signin .form-group,
	body[data-path="login"] .form-signin .email-field {
		width: 100%;
	}

}

body[data-path="update-password"] .for-reset-password {
	margin: 0 !important;
}

body[data-path="login"] .navbar,
body[data-path="update-password"] .web-footer,
body[data-path="update-password"] .navbar {
	display: none !important;
}
