/* Reset some default styles */
body,
h2,
p,
form {
    margin: 0;
    padding: 0;
}

/* Light Theme Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 150px;
    height: auto;
}

.title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    transition: color 0.3s;
}

.error-message {
    color: #ff4444;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.input-field:focus {
    border-color: #be4c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(190, 76, 0, 0.2);
}

.button {
    background-color: #be4c00;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #f76402;
}

/* Dark Theme Styles */
.dark-theme body {
    background-color: #1a1a1a;
    color: #e1e1e1;
}

.dark-theme .container {
    background-color: #2d2d2d;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .title {
    color: #e1e1e1;
}

.dark-theme .error-message {
    color: #ff6666;
}

.dark-theme .input-field {
    background-color: #333333;
    border-color: #444444;
    color: #e1e1e1;
}

.dark-theme .input-field:focus {
    border-color: #f76402;
    box-shadow: 0 0 0 2px rgba(247, 100, 2, 0.2);
}

.dark-theme .input-field::placeholder {
    color: #888888;
}

.dark-theme .button {
    background-color: #be4c00;
}

.dark-theme .button:hover {
    background-color: #f76402;
}

/* Dark theme selection styles */
.dark-theme ::selection {
    background-color: #be4c00;
    color: #ffffff;
}

/* Focus styles for better accessibility */
.dark-theme .input-field:focus,
.dark-theme .button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 100, 2, 0.3);
}

/* Additional dark theme improvements */
.dark-theme .input-field:disabled {
    background-color: #252525;
    color: #666666;
    border-color: #3d3d3d;
}

.dark-theme .button:disabled {
    background-color: #666666;
    cursor: not-allowed;
}

/* Success and error states */
.input-field.success {
    border-color: #00c853;
}

.input-field.error {
    border-color: #ff4444;
}

.dark-theme .input-field.success {
    border-color: #00e676;
}

.dark-theme .input-field.error {
    border-color: #ff5252;
}

/* Loading state for button */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive styles */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        margin: 20px auto;
        padding: 15px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .button {
        padding: 10px 16px;
    }
}