.yuga-login-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    width: 100%;
}

.yuga-login-wrapper.yuga-align-left {
    justify-content: flex-start;
}

.yuga-login-wrapper.yuga-align-center {
    justify-content: center;
}

.yuga-login-wrapper.yuga-align-right {
    justify-content: flex-end;
}

.yuga-login-card.is-forgot-active .yuga-tabs {
    display: none;
}

.yuga-login-card {
    max-width: 460px;
    width: 100%;
    background: #ffffff;
    padding: 1.8rem 1.8rem 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yuga-login-card.yuga-shape-square {
    border-radius: 0;
}

.yuga-login-card.yuga-shape-soft {
    border-radius: 8px;
}

.yuga-login-card.yuga-shape-rounded {
    border-radius: 30px;
}

.yuga-login-card.yuga-no-shadow {
    box-shadow: none;
}

.yuga-login-card.yuga-has-shadow {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.yuga-logo {
    margin-bottom: 1rem;
}

.yuga-logo img {
    max-height: 60px;
    width: auto;
}

.yuga-logo-left {
    text-align: left;
}

.yuga-logo-center {
    text-align: center;
}

.yuga-logo-right {
    text-align: right;
}

.yuga-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.yuga-tab-button {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.yuga-tab-button.is-active {
    font-weight: 600;
    border-bottom-color: currentColor;
}

.yuga-tab-panels {
    margin-top: 0.5rem;
}

.yuga-tab-panel {
    display: none;
}

.yuga-tab-panel.is-active {
    display: block;
}

.yuga-form {
    margin-top: 0.5rem;
}

.yuga-field {
    margin-bottom: 1rem;
}

.yuga-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

.yuga-field input[type="text"],
.yuga-field input[type="email"],
.yuga-field input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #d3d3d3;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.yuga-field input:focus {
    outline: none;
    border-color: #0f6ad8;
    box-shadow: 0 0 0 1px rgba(15,106,216,0.12);
}

.yuga-field-inline {
    display: flex;
    align-items: center;
}

.yuga-field-inline label {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yuga-field-inline input[type="checkbox"],
.yuga-field-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    align-self: center;
    vertical-align: middle;
}

.yuga-field-right {
    text-align: right;
    font-size: 0.85rem;
}

.yuga-field-password .yuga-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.yuga-field-password .yuga-password-wrap input {
    padding-right: 44px;
    margin-bottom: 0;
}
.yuga-toggle-pass {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.yuga-toggle-pass:focus {
    outline: none;
    box-shadow: none;
}
.yuga-toggle-pass .dashicons {
    font-size: 18px;
    line-height: 1;
    color: #0f6ad8;
    display: inline-flex;
    align-items: center;
}

.yuga-field-center {
    text-align: center;
}

.yuga-link-small {
    font-size: 0.85rem;
}

.yuga-forgot-trigger {
    text-decoration: underline;
}

.yuga-help-text {
    font-size: 0.8rem;
    color: inherit;
    margin-top: 0.35rem;
}

.yuga-btn-primary {
    border: 1px solid #0f6ad8;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    background: #0f6ad8;
    color: #ffffff;
    transition: all 0.2s ease;
}

.yuga-btn-full {
    width: auto;
    min-width: 200px;
    display: inline-block;
}

.yuga-btn-primary:hover {
    background: #ffffff;
    color: #0f6ad8;
    border-color: #0f6ad8;
    text-decoration: none;
}

.yuga-btn-primary.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.yuga-logged-in-block {
    text-align: center;
}
.yuga-logged-in-block .yuga-btn-full {
    width: auto;
    display: inline-block;
    min-width: 180px;
}

.yuga-form button.yuga-btn-primary {
    display: block;
    margin: 0 auto;
}

.yuga-btn-shape-square {
    border-radius: 4px;
}

.yuga-btn-shape-soft {
    border-radius: 8px;
}

.yuga-btn-shape-rounded {
    border-radius: 999px;
}

.yuga-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.yuga-alert-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.yuga-alert-success {
    background: #e6f4ea;
    color: #1b5e20;
    border: 1px solid #b4dfc2;
}

.yuga-form-feedback {
    min-height: 1px;
}

.yuga-password-strength {
    margin-top: 0.4rem;
}

.yuga-password-strength-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #e0e0e0;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.yuga-password-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    background: #f44336;
    transition: width 0.2s ease, background 0.2s ease;
}

.yuga-password-strength-text {
    font-size: 0.75rem;
    color: inherit;
}

.yuga-required {
    color: #c62828;
    margin-left: 0.25rem;
}

.yuga-back-to-login {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
}

.yuga-back-to-login-icon {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .yuga-login-wrapper {
        padding: 0 12px;
    }
    .yuga-login-card {
        padding: 1.2rem 1rem 1.4rem;
        overflow: visible;
    }
}
