﻿/* =====================
   General Styles
===================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #007BFF, #00BFA6);

    padding: 0;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    

    
    margin: 80px 0 0 0; /* Enough space for fixed navbar */
    overflow: hidden; /* Disable scrolling on desktop */
    display: flex;
}

main {
    background: #ffffffee;
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.8s ease-in-out;
    margin: 0 auto; /* center horizontally */
}

/* Two-column grid layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 20px; /* space between rows and columns */
    margin-bottom: 20px;
}

/*.form-item {
    display: flex;
    flex-direction: column;
}*/


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    text-align: center;
    color: #007BFF;
    margin-bottom: 15px;
}

h4 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* Form Rows */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s;
    height:25px
}

    input.form-control:focus {
        border-color: #007BFF;
        box-shadow: 0 0 8px #007BFF50;
        outline: none;
    }

/* Button */
input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(45deg, #007BFF, #00BFA6);
    transition: background 0.3s, transform 0.2s;
    height:45px;
    
}

    input[type="submit"]:hover {
        background: linear-gradient(45deg, #005FCC, #00A8D0);
        transform: translateY(-2px);
    }

/* Validation Summary */
.text-danger {
    color: #ff4d4d;
    margin-bottom: 15px;
    text-align: center;
}

/* Responsive Labels & Inputs */
@media (max-width: 576px) {
    .row label {
        width: 100%;
        margin-bottom: 5px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    body {
        overflow-y: auto !important;
        /*padding-top: 80px;*/
        align-items: flex-start; /* So content starts below navbar */
    }

    main {
        margin-top: 0px;
    }
}

