:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff4b5c;
    --text-color: #f0f0f0;
    --bg-color-dark: #1a1a2e;
    --bg-color-light: #16213e;
    --success-color: #03dac6;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Login Screen --- */
.form-container {
    background: var(--bg-color-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.form-container h1 {
    margin-bottom: 10px;
    font-weight: 600;
}

.form-container p {
    margin-bottom: 30px;
    color: #b0b0b0;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 10px;
    background: var(--bg-color-dark);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--success-color);
}

#loginBtn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#loginBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
}

.error-message {
    color: var(--accent-color);
    margin-top: 15px;
    height: 20px;
}

/* --- Video Chat Screen --- */
#video-chat-screen {
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#welcome-message {
    font-weight: 300;
}

.logout-button {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.logout-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color-dark);
}

#videos {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#localVideo {
    position: absolute;
    width: 25%;
    max-width: 250px;
    bottom: 20px;
    right: 20px;
    border-radius: 15px;
    border: 3px solid var(--success-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#call-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.action-btn {
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background-color 0.2s, transform 0.2s;
}

.call {
    background: var(--success-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
}
.call:hover {
    transform: scale(1.05);
}

.control-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
}
.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.control-btn.toggled {
    background-color: var(--accent-color);
}

.hangup {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
}
.hangup:hover {
    background-color: #e63946;
    transform: scale(1.1);
}