:root {
    --lt-primary: #1D3557;
    --lt-secondary: #457B9D;
    --lt-accent: #E63946;
    --lt-light: #F1FAEE;
    --lt-gradient: linear-gradient(135deg, #1D3557 0%, #274d8c 50%, #457B9D 100%);
}

html, body {
    min-height: 100%;
    font-family: "Nunito", sans-serif;
}

.register-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    width: 100%;
    max-width: 600px;
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(29, 53, 87, 0.15);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card .card-header {
    background: var(--lt-gradient);
    padding: 2rem;
    text-align: center;
    border-bottom: none;
}

.register-card .card-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.register-card .card-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.register-card .card-body {
    padding: 2rem;
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control,
.input-group-icon .form-select {
    padding-left: 2.75rem;
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.input-group-icon .form-control:focus,
.input-group-icon .form-select:focus {
    border-color: var(--lt-secondary);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}

.input-group-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lt-secondary);
    font-size: 1rem;
    z-index: 5;
}

.input-group-icon textarea.form-control {
    padding-top: 0.75rem;
    min-height: 80px;
}

.input-group-icon textarea.form-control ~ .input-icon {
    top: 1.25rem;
    transform: none;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 5;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--lt-primary);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak { width: 25%; background: #dc3545; }
.password-strength-bar.fair { width: 50%; background: #ffc107; }
.password-strength-bar.good { width: 75%; background: #17a2b8; }
.password-strength-bar.strong { width: 100%; background: #28a745; }

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #6c757d;
}

.btn-register {
    background: var(--lt-gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.25);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-login-link {
    border: 2px solid var(--lt-secondary);
    border-radius: 0.75rem;
    color: var(--lt-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn-login-link:hover {
    background: var(--lt-secondary);
    color: white;
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.alert-danger {
    border-radius: 0.75rem;
    border: none;
    background: #f8d7da;
}

.form-check-label {
    font-size: 0.875rem;
    color: #495057;
}

.form-check-label a {
    color: var(--lt-secondary);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}
