/* GlobalChatly Ortak Stil Dosyası */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0077cc, #66aaff);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 15px;
}

.container {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.icon {
    font-size: 50px;
    color: #0077cc;
    margin-bottom: 15px;
}

h1, h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

p.info {
    color: #555;
    margin-bottom: 25px;
    font-size: 15px;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

button[type="submit"], .back-button, input[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 50px;
}

button[type="submit"], input[type="submit"] {
    background-color: #0077cc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

button[type="submit"]:hover, input[type="submit"]:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

.back-button {
    background-color: #e9ecef;
    color: #495057;
    margin-top: 15px;
}

.back-button:hover {
    background-color: #d8dde2;
}

.feedback-message, .message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid;
}

.feedback-message.success, .message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.feedback-message.error, .message:not(.success) {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Spinner CSS */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s ease-in-out infinite;
    display: none; /* Varsayılan olarak gizli */
}

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

button[type="submit"].loading .spinner {
    display: block;
}

button[type="submit"].loading .button-text {
    display: none;
} 