body {
    background: #f8f9fa;
}

.content-wrap {
    padding-top: 80px; /* To account for fixed header */
    padding-bottom: 40px;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.toggle-btn {
    background: none;
    border: none;
    color: #333;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    outline: none;
}

.toggle-btn.active {
    color: #0d7bf8;
    font-weight: bold;
}

.toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0d7bf8;
}

#login-form, #register-form {
    margin-top: 20px;
}

#register-form h3, #login-form h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.form-control {
    margin-bottom: 15px !important;
    height: 45px;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #0d7bf8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0960c1;
}

.register-as {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.reg-as-btn {
    color:black;
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.reg-as-btn.active {
    background: #0d7bf8;
    color: white;
}

.error-message, .error-message-red {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 4px;
}
.error-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-message-red {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
