/* ManagedHorizons password recovery pages */

.login-page {
    min-height: 100vh;
    background: #f6f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #111827;
}

.login-shell {
    width: 100%;
    max-width: 430px;
    padding: 24px;
}

.login-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.login-brand {
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.login-heading h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #111827;
}

.login-heading p {
    margin: 0 0 28px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.btn-primary {
    height: 44px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.login-submit {
    margin-top: 5px;
}

.login-message {
    min-height: 20px;
    margin: 18px 0 0;
    font-size: 14px;
    color: #374151;
}

.login-register-link {
    display: inline-block;
    margin-top: 18px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.login-register-link:hover {
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 500px) {
    .login-shell {
        padding: 15px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .login-heading h1 {
        font-size: 30px;
    }
}

/* ManagedHorizons responsive application pass v2 */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

textarea,
input,
select,
button {
    max-width: 100%;
    box-sizing: border-box;
}

.modal {
    padding: 12px;
    overflow-y: auto;
}

.modal-card {
    width: min(900px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

@media (max-width: 900px) {

    .dashboard-layout,
    .app-layout {
        display: block !important;
    }

    .sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .hero,
    .hero-layout,
    .checkout-layout,
    .support-layout,
    .template-editor-layout {
        grid-template-columns: 1fr !important;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {

    .site-header,
    .navbar,
    nav {
        flex-wrap: wrap;
        height: auto !important;
    }

    .site-header {
        padding: 16px !important;
    }

    .site-header nav {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid,
    .template-editor-layout,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-content,
    .admin-content,
    .container {
        width: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .modal-card,
    .card,
    .panel {
        width: 100%;
        max-width: 100%;
    }

    .modal-actions,
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-actions button,
    .hero-actions a,
    .hero-actions button {
        width: 100%;
    }

    textarea {
        min-height: 180px;
    }
}
