#loginlook_logo_preview img {
    border: 1px solid #ddd;
    padding: 5px;
    background: #f9f9f9;
}

#loginlook_custom_css {
    font-family: monospace;
}

.loginlook-settings-wrap {
    max-width: 1100px;
}

.loginlook-settings-wrap form {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.loginlook-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 18px;
}

.loginlook-settings-cards {
    display: grid;
    gap: 18px;
    margin-top: 12px;
}

.loginlook-settings-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px 24px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.loginlook-settings-card:hover {
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.loginlook-card-header h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #0f172a;
}

.loginlook-card-header p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
}

.loginlook-card-body > * + * {
    margin-top: 14px;
}

.loginlook-settings-wrap .loginlook-card-body input[type="text"],
.loginlook-settings-wrap .loginlook-card-body input[type="url"],
.loginlook-settings-wrap .loginlook-card-body input[type="number"],
.loginlook-settings-wrap .loginlook-card-body textarea {
    width: 100%;
    max-width: 560px;
}

.loginlook-settings-wrap .loginlook-card-body input[type="number"] {
    max-width: 140px;
}

.loginlook-settings-wrap .loginlook-card-body input[type="text"].loginlook-color-input {
    max-width: 180px;
}

.loginlook-settings-wrap .form-table {
    margin-top: 0;
}

.loginlook-settings-wrap .form-table th {
    width: 220px;
    font-weight: 600;
    color: #0f172a;
    padding: 18px 12px 18px 0;
}

.loginlook-settings-wrap .form-table td {
    padding: 18px 0;
}

.loginlook-settings-wrap .form-table input[type="text"],
.loginlook-settings-wrap .form-table input[type="url"],
.loginlook-settings-wrap .form-table input[type="number"],
.loginlook-settings-wrap .form-table textarea {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 14px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.loginlook-settings-wrap .form-table input[type="text"]:focus,
.loginlook-settings-wrap .form-table input[type="url"]:focus,
.loginlook-settings-wrap .form-table input[type="number"]:focus,
.loginlook-settings-wrap .form-table textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.loginlook-settings-wrap .description {
    color: #64748b;
    font-size: 12px;
}

.loginlook-settings-wrap .submit {
    margin-top: 16px;
}

.loginlook-inline-field {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.loginlook-inline-field input[type="text"] {
    max-width: 360px;
}

.loginlook-reset-icon {
    padding: 0 10px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loginlook-reset-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.loginlook-color-picker {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
}

.loginlook-settings-wrap .button-primary {
    background: #4f46e5;
    border-color: #4f46e5;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 600;
}

.loginlook-settings-wrap .button-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
}

@media (max-width: 1100px) {
    .loginlook-settings-wrap {
        max-width: 100%;
    }
}

.loginlook-settings-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.loginlook-settings-branding img {
    max-width: 60px;
    height: auto;
    display: block;
}

.loginlook-settings-branding h1 {
    margin: 0;
    font-size: 1.8em;
    color: #0f172a;
}

#adminmenu #toplevel_page_loginlook .wp-menu-image img {
    max-height: 32px;
    width: 20px;
}

#adminmenu #toplevel_page_loginlook .wp-menu-image {
    overflow: hidden;
}

.folded #adminmenu #toplevel_page_loginlook .wp-menu-image img {
    max-height: 20px;
    width: 16px;
    padding: 2px 0;
}

.loginlook-settings-notice.notice {
    margin: 0;
    border-radius: 14px;
    border-left-width: 6px;
    border-color: #e2e8f0;
    border-left-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 100%;
}

.loginlook-settings-notice.notice p {
    margin: 12px 16px;
    font-weight: 600;
    color: #0f172a;
}

.loginlook-notice-row {
    margin: 18px 0 0;
    display: flex;
    width: 100%;
    clear: both;
    flex: 0 0 100%;
    margin-bottom: 20px;
}

.loginlook-themes-grid {
    --ll-card-border: #e2e8f0;
    --ll-card-shadow: rgba(15, 23, 42, 0.08);
    --ll-accent: #4f46e5;
    --ll-accent-strong: #4338ca;
    --ll-success: #16a34a;
    --ll-text: #0f172a;
    --ll-muted: #64748b;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.loginlook-theme-card {
    border: 1px solid var(--ll-card-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: #fff;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.loginlook-theme-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 12px 30px var(--ll-card-shadow);
    transform: translateY(-2px);
}

.loginlook-theme-card.active {
    border-color: var(--ll-accent);
    background: #eef2ff;
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.18);
}

.loginlook-theme-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ll-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.35);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.loginlook-theme-check .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.loginlook-theme-card.active .loginlook-theme-check {
    opacity: 1;
    transform: scale(1);
}

.loginlook-theme-card input[type="radio"] {
    display: none;
}

.loginlook-theme-card .loginlook-theme-preview {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.loginlook-theme-preview img {
    max-width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.loginlook-theme-card h4 {
    margin: 12px 0 6px;
    font-size: 15px;
    color: var(--ll-text);
    font-weight: 600;
}

.loginlook-activate-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--ll-accent);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.loginlook-theme-card.active .loginlook-activate-btn,
.loginlook-theme-card input[type="radio"]:checked ~ .loginlook-activate-btn {
    background: var(--ll-success);
}

.loginlook-activate-btn:hover {
    background: var(--ll-accent-strong);
    transform: translateY(-1px);
}

.loginlook-theme-card.active .loginlook-activate-btn:hover {
    background: #15803d;
}
