﻿/* -----------------------------------
    1 - General Styles
------------------------------------*/
body {
    margin: 0;
    padding: 0;
    background: #fff5f5;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #2b2b2b;
}

/* -----------------------------------
    2 - Main Container
------------------------------------*/
.content {
    margin: 100px auto;
    width: auto;
    max-width: 450px;
    background-color: #ffffff;
    padding: 50px 40px 40px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    border-radius: 15px;
}

    /* Top gradient bar */
    .content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 100%;
        background: linear-gradient(90deg, #ff6b6b, #44C97D);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
/* -----------------------------------
    3 - Form Layout (div/flex)
------------------------------------*/
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* space between inputs */
}

    .form-group label {
        font-weight: 500;
        font-size: 14px;
        color: #555;
        margin-bottom: 6px; /* space between label and input */
    }

/* -----------------------------------
    4 - Section Title
------------------------------------*/
.section-title {
    min-width: 200px;
    max-width: 100%;
    background: linear-gradient(90deg, #ffeaea, #eafff3);
    color: #2f9e6f;
    font-weight: 600;
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* -----------------------------------
    5 - Inputs
------------------------------------*/
input[type="text"],
input[type="password"] {
    padding: 10px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    input[type="text"]:focus,
    input[type="password"]:focus {
        border-color: #44C97D;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(68, 201, 125, 0.18);
        outline: none;
    }

/* Placeholder styling */
input::placeholder {
    color: #bbb;
    font-style: italic;
}

/* -----------------------------------
    6 - Button
------------------------------------*/
#btnlogin,
input[type="submit"] {
    background: linear-gradient(135deg, #ff6b6b, #ff6b6b);
    color: #ffffff !important;
    border: none;
    padding: 12px 10px !important;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
    width: 100%;
}

    #btnlogin:hover,
    input[type="submit"]:hover {
        background: linear-gradient(135deg, #44C97D, #44C97D);
        transform: translateY(-2px);
    }

/* -----------------------------------
    7 - Error & Helper Text
------------------------------------*/
#lblerror {
    display: block;
    margin: 14px 0;
    font-size: 10px;
    color: #ff6b6b;
}

.style4,
.style8 {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #888;
}
/* Dropdown style same as textbox */
.style4 {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2b2b2b;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.2s ease-in-out;
}

    /* Focus effect */
    .style4:focus {
        border-color: #6bbf8a;
        box-shadow: 0 0 0 2px rgba(107,191,138,0.2);
    }

/* Dropdown arrow spacing */
select.style4 {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}
.logout-container {
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
}

.btn-logout {
    background: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

    .btn-logout:hover {
        background: #c9302c;
    }

/* -----------------------------------
    9 - Responsive
------------------------------------*/
@media (max-width: 768px) {
    .content {
        width: 95%;
        padding: 140px 25px 30px 25px;
    }
}

@media print {
    input {
        display: none;
    }
}