.login-container,
.register-container {
    align-items: center;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem
}

.login-wrapper,
.register-wrapper {
    margin: 0 auto;
    max-width: 480px;
    width: 100%
}

.login-card,
.register-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
    margin-bottom: 2rem;
    overflow: hidden
}

.login-header,
.register-header {
    border-bottom: 1px solid #374151;
    padding: 2rem;
    text-align: center
}

.login-logo,
.register-logo {
    height: 4rem;
    margin: 0 auto 1rem
}

.login-header h1,
.register-header h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.login-header p,
.register-header p {
    color: #9ca3af;
    font-size: .95rem
}

.login-form,
.register-form {
    padding: 2rem
}

.alert {
    border-radius: .5rem;
    font-size: .9rem;
    margin-bottom: 1.5rem;
    padding: 1rem
}

.alert-danger {
    background-color: rgba(239, 68, 68, .2);
    border: 1px solid rgba(239, 68, 68, .5);
    color: #fca5a5
}

.alert i {
    margin-right: .5rem
}

.form-group {
    margin-bottom: 1.5rem
}

.form-group label {
    color: #e5e7eb;
    display: block;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .5rem
}

.input-with-icon {
    position: relative
}

.input-with-icon i {
    color: #9ca3af;
    left: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%)
}

.input-with-icon input {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: .5rem;
    color: #e5e7eb;
    font-size: 1rem;
    padding: .75rem 1rem .75rem 2.5rem;
    transition: border-color .2s ease;
    width: 100%
}

.input-with-icon .password-toggle~input,
.input-with-icon:has(.password-toggle) input {
    padding-right: 3rem
}

.input-with-icon input[data-password-field],
.input-with-icon input[type=password] {
    padding-right: 3rem
}

.input-with-icon input[ui-mask] {
    font-family: monospace;
    font-size: .95rem;
    letter-spacing: .5px
}

.input-with-icon input[ui-mask]::placeholder {
    color: #9ca3af;
    opacity: .7
}

.input-with-icon input[ui-mask-placeholder-char=_]::placeholder {
    color: #6b7280
}

.input-with-icon input:focus {
    border-color: #7f56d9;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, .2);
    outline: none
}

.input-with-icon input.is-invalid {
    border-color: #ef4444
}

.password-toggle {
    align-items: center;
    background: none;
    border: none;
    border-radius: .25rem;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 1.5rem;
    min-width: 1.5rem;
    padding: .25rem;
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all .2s ease;
    z-index: 10
}

.password-toggle:hover {
    background-color: rgba(75, 85, 99, .3);
    color: #e5e7eb
}

.password-toggle:focus {
    background-color: rgba(127, 86, 217, .1);
    color: #7f56d9;
    outline: none
}

.password-toggle i {
    font-size: .875rem;
    line-height: 1
}

.validation-message {
    color: #ef4444;
    font-size: .8rem;
    margin-top: .5rem
}

.checkbox-group {
    align-items: center;
    display: flex;
    justify-content: space-between
}

.checkbox-label {
    align-items: center;
    color: #e5e7eb;
    cursor: pointer;
    display: flex;
    font-size: .9rem
}

.checkbox-label input[type=checkbox] {
    cursor: pointer;
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0
}

.checkbox-label a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease
}

.checkbox-label a:hover {
    color: #93c5fd;
    text-decoration: underline
}

.checkbox-label a:focus {
    border-radius: 2px;
    outline: 2px solid #60a5fa;
    outline-offset: 2px
}

.checkbox-custom {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: .25rem;
    display: inline-block;
    height: 1.25rem;
    margin-right: .5rem;
    position: relative;
    transition: all .2s ease;
    width: 1.25rem
}

.checkbox-label input[type=checkbox]:checked~.checkbox-custom {
    background-color: #7f56d9;
    border-color: #7f56d9
}

.checkbox-label input[type=checkbox]:checked~.checkbox-custom:after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    display: block;
    height: 10px;
    left: 8px;
    position: absolute;
    top: 4px;
    transform: rotate(45deg);
    width: 5px
}

.forgot-password {
    color: #a78bfa;
    font-size: .9rem;
    text-decoration: none
}

.forgot-password:hover {
    text-decoration: underline
}

.btn {
    align-items: center;
    border-radius: .5rem;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
    padding: .75rem 1.5rem;
    text-decoration: none;
    transition: all .2s ease
}

.btn-block {
    width: 100%
}

.btn-primary {
    background-color: #7f56d9;
    border: 1px solid #7f56d9;
    color: #fff
}

.btn-primary:hover:not(:disabled) {
    background-color: #6941c6;
    border-color: #6941c6
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: .7
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #4b5563;
    color: #e5e7eb
}

.btn-outline:hover {
    background-color: #374151
}

.btn i {
    margin-right: .5rem
}

.divider {
    color: #9ca3af;
    margin: 1.5rem 0;
    position: relative;
    text-align: center
}

.divider:before {
    background-color: #4b5563;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%
}

.divider span {
    background-color: #1f2937;
    display: inline-block;
    font-size: .875rem;
    padding: 0 1rem;
    position: relative
}

.login-link,
.register-link {
    text-align: center
}

.login-link p,
.register-link p {
    color: #9ca3af;
    margin-bottom: 1rem
}

.login-footer,
.register-footer {
    color: #9ca3af;
    font-size: .875rem;
    text-align: center
}

.legal-links {
    margin-top: .5rem
}

.legal-links a {
    color: #a78bfa;
    margin: 0 .5rem;
    text-decoration: none
}

.legal-links a:hover {
    text-decoration: underline
}

.info-message {
    align-items: center;
    background-color: rgba(34, 197, 94, .2);
    border: 1px solid rgba(34, 197, 94, .5);
    border-radius: .5rem;
    color: #86efac;
    display: flex;
    font-size: .85rem;
    margin-top: .5rem;
    padding: .75rem
}

.info-message i {
    color: #22c55e;
    margin-right: .5rem
}

@media (max-width:480px) {
    .login-card,
    .register-card {
        border-radius: .75rem
    }
    .login-form,
    .register-form {
        padding: 1.5rem
    }
    .checkbox-group {
        align-items: flex-start;
        flex-direction: column
    }
    .forgot-password {
        margin-top: .75rem
    }
}