/* =============================================================================
   Craft CMS Control Panel - Login
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    font-size: 14px;
    color: #29323d;
    background: #fff;
}

/* -----------------------------------------------------------------------------
   Two-column layout
   ----------------------------------------------------------------------------- */

.craft-login {
    display: flex;
    min-height: 100vh;
}

.craft-login__left {
    flex: 0 0 40%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 48px 40px;
}

.craft-login__right {
    flex: 1;
    background: #1e73be;
}

/* -----------------------------------------------------------------------------
   Login card
   ----------------------------------------------------------------------------- */

.craft-login__card {
    width: 100%;
    max-width: 360px;
}

/* Logo */
.craft-login__logo {
    display: block;
    margin: 0 auto 32px;
    max-width: 270px;
    height: auto;
}

/* Page heading (used for forgot/reset sub-pages) */
.craft-login__heading {
    font-size: 18px;
    font-weight: 600;
    color: #29323d;
    margin-bottom: 20px;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   Messages
   ----------------------------------------------------------------------------- */

.craft-error,
.craft-notice {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.craft-error {
    background: #fff1f0;
    border: 1px solid #ffb8b8;
    color: #c0392b;
}

.craft-notice {
    background: #f0f8ff;
    border: 1px solid #b8d8f8;
    color: #1e5799;
}

/* -----------------------------------------------------------------------------
   Form fields
   ----------------------------------------------------------------------------- */

.craft-field {
    margin-bottom: 18px;
}

.craft-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #596673;
    margin-bottom: 6px;
}

.craft-input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cdd8e4;
    border-radius: 4px;
    font-size: 14px;
    color: #29323d;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.craft-input:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

/* Password wrapper for show/hide toggle */
.craft-password-wrap {
    position: relative;
}

.craft-password-wrap .craft-input {
    padding-right: 44px;
}

.craft-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8f98a3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    font-family: inherit;
    transition: color 0.15s;
}

.craft-password-toggle:hover {
    color: #1e73be;
}

/* Remember me */
.craft-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #596673;
    user-select: none;
}

.craft-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #1e73be;
}

/* -----------------------------------------------------------------------------
   Submit button
   ----------------------------------------------------------------------------- */

.craft-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #1e73be;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    font-family: inherit;
}

.craft-btn:hover {
    background: #1a63a8;
}

.craft-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   Footer links (forgot password, back to sign in)
   ----------------------------------------------------------------------------- */

.craft-login__footer {
    text-align: center;
    margin-top: 18px;
}

.craft-login__footer a {
    color: #8f98a3;
    font-size: 13px;
    text-decoration: none;
}

.craft-login__footer a:hover {
    color: #1e73be;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   OM select form (embedded within card)
   ----------------------------------------------------------------------------- */

.craft-field select.craft-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238f98a3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.craft-field p {
    font-size: 13px;
    color: #596673;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   Mobile: hide right column
   ----------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .craft-login__right {
        display: none;
    }

    .craft-login__left {
        flex: none;
        width: 100%;
        padding: 32px 24px;
    }
}
