/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Centering the login form */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Styling the container */
.login-container,
.register-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Heading and instructions */
.login-container h1,
.register-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.login-container p,
.register-container p {
    color: #777;
    margin-bottom: 20px;
}

/* Form Styles */
.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form label,
.register-form label {
    text-align: left;
    width: 100%;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: #007bff;
}

.login-form button,
.register-form button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover,
.register-form button:hover {
    background-color: #0056b3;
}

/* Link Styling */
.login-container p a,
.register-container p a {
    color: #007bff;
    text-decoration: none;
}

.login-container p a:hover,
.register-container p a:hover {
    text-decoration: underline;
}

/* Styling untuk pesan sukses */
.alert {
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 16px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Containers */
    .login-container,
    .register-container {
        max-width: 90%; /* Let the form take up more width on mobile */
        padding: 20px;
    }

    /* Heading */
    .login-container h1,
    .register-container h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    /* Form inputs */
    .login-form input,
    .register-form input {
        padding: 12px;
        font-size: 14px;
    }

    .login-form button,
    .register-form button {
        padding: 12px 25px;
        font-size: 18px;
    }

    /* Links */
    .login-container p a,
    .register-container p a {
        font-size: 14px;
    }
}

/* Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-container,
    .register-container {
        max-width: 80%; /* Slightly more width on tablets */
    }

    .login-container h1,
    .register-container h1 {
        font-size: 22px;
    }

    .login-form input,
    .register-form input {
        padding: 12px;
        font-size: 14px;
    }

    .login-form button,
    .register-form button {
        padding: 12px 25px;
        font-size: 18px;
    }
}

/* Large screens (Desktop) */
@media (min-width: 1024px) {
    .login-container,
    .register-container {
        max-width: 400px; /* Keep the original size on larger screens */
        padding: 30px;
    }

    .login-container h1,
    .register-container h1 {
        font-size: 24px;
    }

    .login-form input,
    .register-form input {
        padding: 14px;
        font-size: 16px;
    }

    .login-form button,
    .register-form button {
        padding: 14px 30px;
        font-size: 20px;
    }
}
