/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Days+One&family=Freeman&display=swap');

body {
    font-family: 'Freeman', sans-serif;
    background-color: #1D1D1D;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    background: rgba(31, 31, 31, 0.9);
    border-radius: 15px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
    border-radius: 15px 15px 0 0;
}

/* Logo */
.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #D9D9D9;
    border: 3px solid #00E5FF;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title */
.login-title {
    font-family: 'Days One', sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-subtitle {
    font-family: 'Freeman', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* Form */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label {
    display: block;
    text-align: left;
    font-family: 'Days One', sans-serif;
    font-size: 12px;
    color: #00E5FF;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(29, 29, 29, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Freeman', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #00E5FF;
    background: rgba(29, 29, 29, 1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password Icon */
.password-wrapper {
    position: relative;
}

.password-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.form-input:focus + .password-icon {
    fill: #00E5FF;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00E5FF, #00B8D4);
    border: none;
    border-radius: 8px;
    color: #1D1D1D;
    font-family: 'Days One', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.5);
    background: linear-gradient(135deg, #00B8D4, #00E5FF);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}

/* Error Message */
.error-message {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-left: 4px solid #ff5252;
    color: #ff5252;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.error-message::before {
    content: '⚠';
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.error-message.show {
    display: block;
    animation: shake 0.5s, fadeIn 0.3s;
}

/* Success Message */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-left: 4px solid #4CAF50;
    color: #4CAF50;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.success-message::before {
    content: '✓';
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

/* Warning Message */
.warning-message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #FFC107;
    color: #FFC107;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.warning-message::before {
    content: 'ℹ';
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
}

.warning-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

/* Info Message */
.info-message {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-left: 4px solid #00E5FF;
    color: #00E5FF;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.info-message::before {
    content: 'i';
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border: 2px solid #00E5FF;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
}

.info-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Text */
.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.login-footer a {
    color: #00E5FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #00B8D4;
}

/* Decorative Corner */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
}

.corner-top-left {
    top: 15px;
    left: 15px;
}

.corner-top-left::before,
.corner-top-left::after {
    content: '';
    position: absolute;
    background: #00E5FF;
}

.corner-top-left::before {
    width: 2px;
    height: 40px;
    top: 0;
    left: 0;
}

.corner-top-left::after {
    width: 40px;
    height: 2px;
    top: 0;
    left: 0;
}

.corner-bottom-right {
    bottom: 15px;
    right: 15px;
}

.corner-bottom-right::before,
.corner-bottom-right::after {
    content: '';
    position: absolute;
    background: #00E5FF;
}

.corner-bottom-right::before {
    width: 2px;
    height: 40px;
    bottom: 0;
    right: 0;
}

.corner-bottom-right::after {
    width: 40px;
    height: 2px;
    bottom: 0;
    right: 0;
}

/* Loading Animation */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .login-button::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #1D1D1D;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 50px 30px;
        max-width: 100%;
    }
    
    .login-logo {
        width: 100px;
        height: 100px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .form-input {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .login-button {
        padding: 13px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        padding: 40px 25px;
    }
    
    .login-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }
    
    .login-title {
        font-size: 18px;
    }
    
    .login-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px;
        font-size: 12px;
    }
    
    .corner-decoration {
        width: 30px;
        height: 30px;
    }
    
    .corner-top-left::before {
        height: 30px;
    }
    
    .corner-top-left::after {
        width: 30px;
    }
    
    .corner-bottom-right::before {
        height: 30px;
    }
    
    .corner-bottom-right::after {
        width: 30px;
    }
}

/* Additional Security Indicator */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 20px;
}

.security-badge svg {
    width: 14px;
    height: 14px;
    fill: #00E5FF;
}
