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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(145deg, #0d0d0d, #1b1b1b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Main Container */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Use min-height instead of fixed height for better flexibility */
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

/* Content Box */
.content-box {
    text-align: center;
    padding: 50px 50px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    margin: 0 auto; /* Ensure centering within the main container */
}

/* Brand Name */
.brand-name {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    margin-left: 7px;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.3s ease;
    color: #aaa;
    background-color: #222;
    letter-spacing: 0.05em;
    border-radius: 0; /* Sharp edges */
}

/* Hover Effects */
.button-group a:hover {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

/* Register and Login Form */
.register-form, .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    border-color: #555;
    outline: none;
}

/* Register and Login Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.3s ease;
    color: #aaa;
    background-color: #222;
    letter-spacing: 0.05em;
    border-radius: 0;
}

.btn-primary:hover {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

@media (max-width: 768px) {
    .content-box {
        padding: 20px;
        max-width: 95%; /* Ensure the box fits better on mobile devices */
    }

    .form-group input {
        padding: 12px; /* Slightly smaller padding for mobile to reduce height */
    }

    .btn-primary {
        padding: 12px;
        font-size: 0.9rem; /* Smaller font size for mobile */
    }
}