﻿* {
    box-sizing: border-box;
}

.row::after {
    content: "";
    clear: both;
    display: block;
}

#bg-text {
    color: lightgrey;
    font-size: 120px;
    transform: rotate(300deg);
    -webkit-transform: rotate(300deg);
}

[class*="col-"] {
    float: left;
    padding: 2px;
}

html {
    font-family: 'Poppins', 'Inter', 'Segoe UI', "Trirong", serif;
    font-size: medium;
}

.header {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffffff;
    padding: 1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.aside {
    background: linear-gradient(135deg, #33b5e5 0%, #0099cc 100%);
    padding: 15px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aside:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.footer {
    background: linear-gradient(135deg, #00008b 0%, #000050 100%);
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    padding: 2px;
}

.child {
    margin: 0 auto;
}

.button {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 2px solid #2196F3;
    color: #2196F3;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.button:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
}

button:disabled,
button[disabled] {
    opacity: 0.4;
    cursor: not-allowed !important;
    transform: none !important;
}

.reg {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    margin: 4px 4px;
    cursor: pointer;
    width: 150px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.reg:hover {
    background: linear-gradient(135deg, #9b4eed 0%, #7a2bc2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 25px 0;
}

.formheader {
    text-align: center;
    color: #1a237e;
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.1);
}

.buttonround {
    border-radius: 50%;
}

div.l {
    text-align: left;
}

div.r {
    text-align: right;
}

.qp {
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Grid System */
@media only screen and (max-width: 600px) {
    [class*="col-"] {
        width: 100%;
    }
    div.l, div.r {
        text-align: center;
    }
    .buttonround {
        width: 7%;
        font-size: 2.5vw;
    }
}

@media only screen and (min-width: 600px) {
    .col-s-1 { width: 8.33%; }
    .col-s-2 { width: 16.66%; }
    .col-s-3 { width: 25%; }
    .col-s-4 { width: 33.33%; }
    .col-s-5 { width: 41.66%; }
    .col-s-6 { width: 50%; }
    .col-s-7 { width: 58.33%; }
    .col-s-8 { width: 66.66%; }
    .col-s-9 { width: 75%; }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }
    div.l, div.r {
        text-align: center;
    }
}

@media only screen and (min-width: 768px) {
    .col-1 { width: 8.33%; }
    .col-2 { width: 16.66%; }
    .col-3 { width: 25%; }
    .col-4 { width: 33.33%; }
    .col-5 { width: 41.66%; }
    .col-6 { width: 50%; }
    .col-7 { width: 58.33%; }
    .col-8 { width: 66.66%; }
    .col-9 { width: 75%; }
    .col-10 { width: 83.33%; }
    .col-11 { width: 91.66%; }
    .col-12 { width: 100%; }
    div.l {
        text-align: left;
    }
    div.r {
        text-align: right;
    }
}

/* Form Elements */
input[type=text], 
input[type=password], 
select, 
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    text-transform: uppercase;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

input[type=text]:focus, 
input[type=password]:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
    background: #fafafa;
}

label {
    padding: 12px 12px 12px 0;
    display: inline-block;
    font-weight: 500;
    color: #424242;
}

.vbutton {
    background: linear-gradient(135deg, #ffe4b5 0%, #ffd39b 100%);
    color: #8b4513;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    float: right;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 228, 181, 0.4);
}

.vbutton:hover {
    background: linear-gradient(135deg, #ffd39b 0%, #ffb366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 228, 181, 0.6);
}

button.mybutton {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

button.mybutton:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

button.mybutton:disabled,
button.mybutton[disabled] {
    border: 1px solid #999999;
    background: linear-gradient(135deg, #cccccc 0%, #bbbbbb 100%);
    color: #666666;
    transform: none;
    box-shadow: none;
}

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.cancelbtn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.imgcontainer {
    text-align: center;
    margin: 10px 0 6px 0;
}

img {
    max-width: 100%;
    height: auto;
}

img.avatar {
    width: 6%;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

img.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

img.som {
    width: 10%;
    border-radius: 10%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

img.som:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.container {
    padding: 16px;
}

span.psw {
    float: right;
    padding-top: 16px;
    color: #2196F3;
    transition: color 0.3s ease;
}

span.psw:hover {
    color: #1976D2;
}

@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }
    .cancelbtn {
        width: 100%;
    }
}

.modalBackground {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modalPopup {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    width: 1000px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    font-weight: 500;
    font-size: 13px;
    padding: 8px 12px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}