* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background utama dengan gradien dan pattern halus */
body {
    background-image: url(../images/bg.png);
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-repeat: no-repeat;
}

/* Container utama dengan efek glassmorphism */
.ctr {
    display: flex;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Bagian gambar dengan overlay dan konten */
.image-section {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(73, 73, 73, 0.9), rgba(43, 42, 42, 0.9)),
        url('https://images.unsplash.com/photo-1546410531-bb4caa6b424d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: rgb(243, 242, 242);
    text-align: center;
    position: relative;
}

/* Efek floating untuk gambar section */
.image-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}

.image-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-section p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.floating-card {
    width: 150px;
    height: 150px;
    margin: 0 auto 100px;
    background: white;
    border-radius: 15px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.1),
        0 0 0 10px rgba(255, 255, 255, 0.2),
        0 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatUpDown 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.floating-card .logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-10px) translateZ(10px);
    }
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
    color: #f1c40f;
}

/* Bagian form */
.form-section {
    flex: 1;
    padding: 40px;
    background: white;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f1f1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #555;
}

.tab.active {
    background: linear-gradient(to right, #2980b9, #3498db);
    color: white;
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.3);
}

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: white;
}

.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.input-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: white;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #2980b9;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: #1a5276;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #2980b9, #3498db);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(41, 128, 185, 0.2);
}

.btn:hover {
    background: linear-gradient(to right, #2472a4, #2980b9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

.language-selector {
    margin-top: 20px;
    text-align: center;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    color: #2c3e50;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ctr {
        flex-direction: column;
        width: 95%;
    }

    .image-section {
        display: none;
    }

    .form-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        background-size: 40px 40px;
    }

    .form-section {
        padding: 20px;
    }

    .tab {
        padding: 10px;
        font-size: 14px;
    }

    .title {
        font-size: 20px;
    }
}

/* Floating particles background (optional) */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(83, 130, 213, 0.8);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger ul {
    margin-top: 8px;
}

.input-error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a5ccc;
    border-color: #3a5ccc;
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    background: #eee;
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength span {
    display: block;
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}
