/* ===============================
   Auth Pages: Login / Register / Forgot / Reset / Change Password
   =============================== */

/* Shared background setup */
body.login-page,
body.register-page,
body.forgot-password-page,
body.reset-password-page,

/* ---------- LOGIN PAGE ---------- */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centered login form container */
body.login-page form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Login content wrapper */
body.login-page .content {
    margin-left: 0;
    padding-top: 100px;
    width: 100%;
    display: block;
}

/* Login box styling */
body.login-page .login-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(248, 249, 250, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* Inputs */
body.login-page .login-box input.form-control {
    width: 100%;
    margin-bottom: 15px;
}

/* Button container and layout */
body.login-page .login-box .d-flex.gap-2 {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

/* Buttons */
body.login-page .login-box .d-flex.gap-2 .btn {
    width: 42%;
}

/* Logo inside login box */
body.login-page .login-box .logo-bottom-right {
    position: absolute;
    bottom: 15px;
    right: 15px;
    max-width: 60px;
    height: auto;
    opacity: 0.6;
    z-index: 1;
}

/* Inline logo (top-right of box) */
.logo-inline {
  height: 42px;
  width: auto;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-inline:hover {
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
}

/* ---------- REGISTER PAGE ---------- */
body.register-page .content {
    margin-left: 0;
    display: flex-start;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}

/* ---------- FORGOT PASSWORD PAGE ---------- */
body.forgot-password-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

/* Forgot password content wrapper */
body.forgot-password-page .content {
    margin-left: 0;
    width: 100%;
    max-width: 400px;
    padding: 0;
    display: flex;
    justify-content: center;
    height: auto;
}

/* Forgot password box */
body.forgot-password-page .login-box {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: rgba(248, 249, 250, 0.95);
    margin-top: 100px;
    margin-bottom: auto;
}

/* ---------- RESET PASSWORD PAGE ---------- */
body.reset-password-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

/* Reset content wrapper */
body.reset-password-page .content {
    margin-left: 0;
    width: 100%;
    max-width: 400px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reset box */
body.reset-password-page .login-box {
    width: 100%;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: rgba(248, 249, 250, 0.95);
    margin-top: 100px;
    margin-bottom: auto;
}

/* ---------- CHANGE PASSWORD PAGE ---------- */
body.change-password-page {
    display: flex;
    padding-left: 400px; /* offset for sidebar */
}

body.change-password-page.sidebar-collapsed {
    padding-left: 500px;
}

/* Change password form box */
body.change-password-page .login-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

/* ---------- SHARED ELEMENTS ---------- */

/* Password visibility toggle */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}
.toggle-password:hover {
    color: #000;
}
