* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e2d71 0%, #287a37 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.logo-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: #287a37;*/
    padding-bottom: 1rem;
}

.container {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 40px 20px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.4s ease;
}

h2 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #1e2d71;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

a {
    color: #1e2d71;
    text-decoration: none;
    font-size: 0.85rem;
}

a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #1e2d71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #5a6fd6;
}

.toggle-text {
    margin-top: 25px;
}

/* Transitions & Visibility */
.form-container {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-container.login-active,
.form-container.form-visible {
    display: block;
}

.form-hidden {
    display: none !important;
}

/* close button styling */

/* The container must have relative positioning */
.card-container {
    position: relative; 
    width: 400px;
    padding: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 50px auto;
}

/* The close button pinned to the top right */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Subtle hover effect */
.close-btn:hover {
    color: #ff0000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}