/* Custom resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f3f4f6;
    padding: 20px;
}

.main {
    width: 100%;
    max-width: 400px;
}

form {
    background: rgba(30, 41, 59, 0.7) !important; /* Frosted dark background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
}

form:before, form:after {
    display: none !important; /* Hide old shiny decorators */
}

/* Header style inside login form */
form div[align="center"] {
    margin-bottom: 25px;
}

form img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    margin-bottom: 10px;
}

form h2 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

#lblres {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ef4444 !important; /* Vibrant Red error text */
}

.inset {
    border: none !important;
    padding: 0 !important;
}

.inset p {
    margin-bottom: 20px;
}

label {
    display: block !important;
    color: #9ca3af !important; /* Light cool grey */
    font-size: 13px !important;
    font-weight: 500;
    margin-bottom: 8px !important;
    text-shadow: none !important;
}

input[type=text],
input[type=password] {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
    margin-bottom: 0 !important;
}

input[type=text]::placeholder,
input[type=password]::placeholder {
    color: #6b7280;
}

input[type=text]:focus,
input[type=password]:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #6366f1 !important; /* Indigo glow */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* Remember me styling */
.inset p:last-child {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

input[type=checkbox] {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

label[for=remember] {
    display: inline-block !important;
    color: #d1d5db !important;
    padding-bottom: 0 !important;
    cursor: pointer;
}

/* Container for links and submit button */
.p-container {
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.p-container span a {
    font-size: 14px !important;
    color: #818cf8 !important; /* Indigo light link */
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.p-container span a:hover {
    color: #a5b4fc !important;
    text-decoration: underline !important;
}

/* Submit button */
input[type=submit] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; /* Orange gradient */
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2) !important;
    transition: all 0.2s ease !important;
    float: none !important;
    cursor: pointer !important;
}

input[type=submit]:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%) !important;
    box-shadow: 0 6px 8px -1px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px);
}

input[type=submit]:active {
    transform: translateY(1px);
}

/* Copyright text styling */
.copy-right {
    margin-top: 30px;
    text-align: center;
}

.copy-right p {
    color: #9ca3af !important;
    font-size: 13px !important;
    padding: 0 !important;
}

.copy-right p a {
    color: #818cf8 !important;
    text-decoration: none !important;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.copy-right p a:hover {
    color: #a5b4fc !important;
    text-decoration: underline !important;
}