* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Register Container */
.register-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex; /* Tambahkan */
    align-items: center; /* Tambahkan */
    justify-content: center;
}

.register-container .container {
    width: 100%;
}

.register-container .row {
    min-height: auto; /* Tambahkan untuk override min-vh-100 */
}

/* Register Card */
.register-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Brand Section */
.register-left {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 40px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.register-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.brand-section {
    position: relative;
    z-index: 1;
    width: 100%;
}

.welcome-text {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.brand-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

/* Quote Section */
.quote-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.quote-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.quote-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Right Side - Form Section */
.register-right {
    padding: 40px 40px;
    background: #ffffff;
}

.mobile-logo {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-logo img {
    max-width: 190px;
    height: auto;
}

.form-section {
    max-width: 420px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Form Styling */
.register-form {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input:focus ~ .input-icon {
    color: #2563eb;
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #2563eb;
}

.input-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: #ef4444;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 24px;
}

.btn-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Login Link */
.login-link {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
    margin-top: 24px;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .register-left {
        padding: 35px 30px;
    }

    .register-right {
        padding: 35px 30px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .form-title {
        font-size: 1.625rem;
    }

    .quote-section {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .register-card {
        border-radius: 16px;
    }

    .register-right {
        padding: 30px 24px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .btn-submit {
        margin-top: 20px;
    }

    .form-header {
        margin-bottom: 25px; /* Tambahkan ini */
    }
}

@media (max-width: 575.98px) {
    .register-right {
        padding: 24px 20px;
    }

    .form-title {
        font-size: 1.375rem;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .form-input {
        padding: 12px 14px 12px 44px;
    }

    .btn-submit {
        padding: 14px 20px;
    }

    .form-group {
        margin-bottom: 16px; /* Tambahkan ini */
    }

    .login-link {
        margin-top: 20px; /* Tambahkan ini */
    }
}

@media (max-width: 359.98px) {
    .register-right {
        padding: 20px 16px;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-header {
        margin-bottom: 20px; /* Tambahkan ini */
    }
}
