@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0060a3 0%, #003266 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 20px;
}

form {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 32px 28px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    form {
        padding: 48px 40px;
    }
    
    .login-card {
        max-width: 440px;
    }
}

form * {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    letter-spacing: 0.3px;
    outline: none;
    border: none;
}

form h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
    margin-bottom: 8px;
}

form h4 {
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    margin-top: 0;
    opacity: 0.85;
}

.subtitle {
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    opacity: 0.7;
    margin-top: 4px;
    margin-bottom: 24px;
}

form h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    margin-top: 8px;
}

.form-group {
    margin-top: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: opacity 0.3s;
    pointer-events: none;
}

.input-wrapper input:focus ~ svg,
.input-wrapper input:hover ~ svg {
    opacity: 0.8;
}

input {
    display: block;
    height: 52px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-radius: 12px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    width: 100%;
    background: linear-gradient(135deg, #00a3ff 0%, #0060a3 100%);
    border-radius: 12px;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
    background: linear-gradient(135deg, #1ab3ff 0%, #0070b8 100%);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 163, 255, 0.3);
}

button svg {
    width: 18px;
    height: 18px;
}

button.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.alert {
    padding: 12px 16px;
    margin-top: 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert.info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.alert.success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#corporate-user-form {
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.centered-text {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.footer {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    opacity: 0.6;
    border-top: none;
}

.footer p {
    margin: 0;
}

.logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.logo img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 12px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

div.small-link {
    text-align: center;
    margin-top: 24px;
}

.small-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.65;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.small-link a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.divider span {
    font-size: 12px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.msbtn {
    border-radius: 12px;
}

/* Security badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.5;
}

.security-badge svg {
    width: 14px;
    height: 14px;
}

/* Loading state */
button.loading {
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}