/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Raleway', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Background Animation */
.background {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    transition: all 0.6s ease;
    transform: rotate(45deg);
}

.color-block {
    position: absolute;
    width: 50%;
    height: 50%;
    transition: all 0.6s ease;
}

.red {
    top: 0;
    left: 0;
    background-color: #ff6b6b;
}

.orange {
    top: 0;
    left: 50%;
    background-color: #ffa502;
}

.blue {
    top: 50%;
    left: 0;
    background-color: #74b9ff;
}

.purple {
    top: 50%;
    left: 50%;
    background-color: #a55eea;
}

/* Hover Effects */
body:hover .background {
    transform: rotate(135deg);
}

body:hover .red {
    transform: translate(-20px, -20px);
}

body:hover .orange {
    transform: translate(20px, -20px);
}

body:hover .blue {
    transform: translate(-20px, 20px);
}

body:hover .purple {
    transform: translate(20px, 20px);
}

/* Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    width: 400px;
    height: 400px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease 0.1s;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body:hover .login-container {
    opacity: 1;
    transform: scale(1);
}

/* Typography */
h1 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2f3542;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #57606f;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(255, 255, 255, 0.8);
    color: #2f3542;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #70a1ff;
    outline: none;
    box-shadow: 0 2px 12px rgba(112, 161, 255, 0.2);
    background-color: white;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #a4b0be;
    font-weight: 400;
}

/* Button Styles */
button {
    width: 100%;
    padding: 1.1rem;
    background-color: #5352ed;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #3742fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(55, 66, 250, 0.25);
}