
h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", 'Manrope', sans-serif;
  color: var(--fg-main);
  font-weight: 700;
  margin: 0.5em 0;
}

/* --- Glassmorphism Background --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "Open Sans", 'Manrope', sans-serif;
    font-weight: 400;
    background: none !important;
    position: relative;
}

.glassmorphism-background {
    position: fixed;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: #1c1c1c;
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/uploads/default/skoolybg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    z-index: -1;
}

/* --- Two-Box Flex Layout --- */
.skooly-login-flex {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: none;
    z-index: 1;
    position: relative;
}

/* --- Left Box: Logo and Slogan --- */
.skooly-login-left {
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(11,13,41,0.17);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    align-items: center;
    min-width: 320px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 36px;
}

.skooly-login-logo {
    max-width: 250px !important;
    width:100%;
    height: auto;
    display:block;
    margin: 30px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: transparent;
    justify-content: center;
}

.skooly-login-slogan {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0px auto 0px auto;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0,0,0,0.20);
    letter-spacing: 0.02em;
    padding: 80px 0px 40px 0px;
    word-spacing: 0.5em;
    letter-spacing: none;
}

/* --- Right Box: Login Form --- */
.skooly-login-right {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(11,13,41,0.17);
    min-width: 350px;
    max-width: 400px;
    border-radius: 16px;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 36px;
}

/* --- Login Form Styling --- */
.skooly-form-box {
    width: 100%;
    color: #fff;
    background: none;
    margin:10px auto 0 auto;
}

.skooly-header {
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #f8f9fb;
    text-shadow: 0 2px 6px rgba(0,0,0,0.19);
}

.skooly-body {
    width: 100%;
}


/* --- Lined Input Fields with Icons --- */
.skooly-input-line-group {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #bfc5d2;
    margin-bottom: 26px;
    padding: 10px 0;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: none;
}
.skooly-input-line-group:focus-within {
    border-bottom: 2px solid #fff;
    box-shadow: 0 2px 12px rgba(255,255,255,0.09);
}
.skooly-input-line-group:hover {
    border-bottom: 2px solid #fff;
}
.skooly-input-icon {
    color: #bfc5d2;
    margin-right: 12px;
    font-size: 1.5rem;
    width: 28px;
    text-align: center;
    transition: color 0.2s;
}
.skooly-input-line-group:focus-within .skooly-input-icon,
.skooly-input-line-group:hover .skooly-input-icon {
    color: #4c72fb;
}
.skooly-line-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    font-family: "Open Sans",'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    flex: 1;
    padding: 8px 0;
    color: #fff;
}
.skooly-line-input::placeholder {
    color: #bfc5d2;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 1;
    font-family: inherit;
    letter-spacing: 0.01em;
}

/* Chrome, Safari, Edge autofill fix */
.skooly-line-input:-webkit-autofill,
.skooly-line-input:-webkit-autofill:hover,
.skooly-line-input:-webkit-autofill:focus,
.skooly-line-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #212121 inset !important; /* match your background */
    box-shadow: 0 0 0 50px #212121 inset !important;
    -webkit-text-fill-color: #fff !important; /* match your text color */
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Optionally, for Firefox */
.skooly-line-input:-moz-autofill {
    box-shadow: 0 0 0 50px #212121 inset !important;
    -moz-text-fill-color: #fff !important;
}


/* --- Checkbox and Links --- */
.skooly-form-box .checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    color: #eee;
    
}
.skooly-form-box .checkbox label,
.skooly-form-box .checkbox span.pull-right label {
    color: #eee;
    margin-bottom: 0;
}
.skooly-form-box .checkbox input[type="checkbox"] {
    margin-right: 7px;
}
.skooly-form-box .checkbox span.pull-right a {
    color: #bfc5d2 !important;
    text-decoration: none;
    font-size: 0.97em;
}
.skooly-form-box .checkbox span.pull-right a:hover {
    color: #4c72fb !important;
}

/* --- Login Button --- */
.form-box .btn.btn-block {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #fff !important;
    font-family: "Open Sans",'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 12px;
    border-radius: 55px;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.form-box .btn.btn-block:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

/* --- Alerts --- */
.skooly-form-box .alert {
    background: rgba(255, 99, 71, 0.7) !important;
    border: 1px solid rgba(255, 99, 71, 0.9) !important;
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    position: relative;
}
.skooly-form-box .alert-success {
    background: rgba(92, 184, 92, 0.7) !important;
    border: 1px solid rgba(92, 184, 92, 0.9) !important;
}


.form-box .body > .form-group > input, .form-box .footer > .form-group > input {
	border: none !important; 
	box-shadow: 0 0 0 rgba(0, 0, 0, 0.070) inset;
	border-radius: 55px;
	background: #515151;
	color: #fff;
}


/* --- Demo Banner Styling (if applicable) --- */
.skooly-demo-nav .navbar.navbar-default,
.skooly-demo-btns .btn-group {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.skooly-demo-nav .navbar-brand {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: bold;
    text-shadow: none;
}
.skooly-demo-btns .btn-group .btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 5px !important;
    margin: 5px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.skooly-demo-btns .btn-group .btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Responsive adjustments --- */
@media (max-width: 900px) {
    .skooly-login-flex {
        flex-direction: column;
        min-height: unset;
        padding: 0;
    }
    .skooly-login-left, .skooly-login-right {
        border-radius: 0;
        min-width: unset;
        max-width: 100vw;
        width: 100%;
        box-shadow: none;
        padding: 28px 12px;
    }
    .skooly-login-left {
        padding-bottom: 10px;
    }
}
@media (max-width: 767px) {
    .skooly-form-box {
        width: 95%;
        padding: 20px;
    }
    .skooly-header {
        margin-bottom: 20px;
    }
    .skooly-login-left, .skooly-login-right {
        padding: 18px 4vw;
    }
}

/* --- Optional: Text selection color --- */
::selection {
    background: #4c72fb;
    color: #fff;
}