/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-size: 16px;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;

    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Input Group Styles */
/* Input Group Styles */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    color: #aaa;
    pointer-events: none;
    z-index: 9;
}
.input-group label[for="message"] {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-200%);
    transition: all 0.2s ease;
    color: #aaa;
    pointer-events: none;
    z-index: 9;
}

.input-group input:focus ~ label:not(.checkbox-group label),
.input-group textarea:focus ~ label:not(.checkbox-group label),
.input-group input:not(:placeholder-shown) ~ label:not(.checkbox-group label),
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

.input-group input,
.input-group textarea {
    padding: 12px 15px;
    padding-top: 12px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}
/* Focused State for Labels */
.input-group label.focused:not(.checkbox-group label) {
    top: -10px;
    left: 0px;
    font-size: 12px;
    color: #007bff;
}
.input-group label[for="message"].focused:not(.checkbox-group label) {
    top: 17px;
    left: 0px;
    font-size: 12px;
    color: #007bff;
}

/* Valid/Invalid Input Styles */
.input-group input.valid,
.input-group textarea.valid {
    border-color: #28a745;  /* Geçerli (valid) durumda yeşil border */
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.25);  /* Hafif yeşil bir gölge ekleyelim */
}

.input-group input.invalid,
.input-group textarea.invalid {
    border-color: #dc3545;  /* Geçersiz (invalid) durumda kırmızı border */
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.25);  /* Hafif kırmızı bir gölge ekleyelim */
}


.input-group .input-icon i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

.input-group input:focus + i,
.input-group textarea:focus + i {
    color: #007bff;
}

.checkbox-group {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.checkbox-group input {
    margin-right: 10px;
    width: auto;
}
.checkbox-group label {
    color: #555;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 0;
    margin-left: 10px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(1px);
}

button:active {
    background-color: #004494;
    transform: translateY(2px);
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #444;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s forwards;
    font-size: 14px;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }
}